Kongregate SDK 3.0.0 has a lot of big changes behind the scenes. First off, it completely replaces SWRVE with a new CRM platform, DeltaDNA. The primary advantage of DeltaDNA is that it’s a more flexible messaging tool where event properties are globally accessible and campaigns are easier to setup. Additionally, the Kongregate SDK now sends all analytic events directly to a Kongregate ingestion solution that is no longer tied to a 3rd party vendor.
Here are the changes that directly affect implementing the newest KongregateSDK:
customParameterListener
(explained below #4)swrve.
) to Delta only events by prepending delta.
instead. If you’d like to pass custom parameters to your game via DeltaDNA, please implement a customParameterListener
. This will receive a dictionary that you can set up on DeltaDNA to be returned in response to specified events.customButtonListener
has changed a bit. See individual platform descriptions below.SwrveLibProject
and Kongregate
Folders under Plugins/Android
Plugins/KongregateAPI.cs
KongregateSDK.bundle
, KongregateSDK.framework
, Swrve.bundle
& Swrve.framework
folders under Editor
Plugins/Android/AndroidManifest.xml
SetSwrveButtonListener
function with SetDeltaButtonListener
. Your callback function will receive three arguements: the id of placement, the type of action (link
or action
), and the action value which will be the url in case of a link
action or the value set on the DeltaDNA platformSetDeltaParameterListener
. Your callback function will receive a Dictionary of string, object pairs of custom parameters set on the DeltaDNA platformKongregateSDK.framework
& KongregateSDK.bundle
, as well as the Swrve.framework
& Swrve.bundle
, from your XCode project.KongregateSDK.framework
& KongregateSDK.bundle
into FrameworksDeltaDNA.framework
into Frameworks. Additionally, drag the DeltaDNA.framework
under Embedded Binaries-fembed-bitcode
flag under Build Settings - Other C Flags
setSwrveButtonCallback
with setDeltaButtonCallback
. Your callback will receive two strings: the name of the image component that was clicked and the a custom value that you set for the component.setDeltaParameterCallback
with a callback that receives an NSDictionary of custom set keys and valuesKongregateSDK.aar
file & the SwrveLibProject
folder from your projectKongregateSDK.aar
to your projectDeltaDNA.aar
to your projectAndroidManifest.xml
Add the following entry to your AndroidManifest.xml
:
setSwrveCustomButtonListener
with setDeltaCustomButtonListener
. Please pass in a DeltaWrapper.CustomImageListener
that overrides the onAction(String value, String params)
and onLink(String value, String params)
setDeltaCustomParamLister
and pass in a DeltaWrapper.CustomParameterListener
that overrides onParameterReceived(JSONObject action)