Oracle CX Advertising SDK 4.0

  1. Bluekai SDK rewritten in Kotlin

  2. Added a new onDataPosted() callback method which provides information data then previous method which only use to return success or failure status.

  3. Support for GDPR (TCF v2) is implemented.

    Note:

    It is the responsibility of implementing app to implement & get GDPR consent before initiating Bluekai SDK. If the GDPR consent is given the SDK once initiated will read the vaue & send it to Oracle Data Cloud, if there is no consent given on GDPR pop-up, SDK will not make call to Oracle Data Cloud or show ATT pop-up in case of iOS.

  4. Server response is returned as JSON object in new onDataPosted() method.
  5. New API methods for profile creation on hashed email.

    put(email:String?, key:String?, value:String?) putAll(email: String?, key: String?, value: String?)
  6. New API methods for profile creation on unique customer id's.

     put(customerIdKey:String?, customerIdValue:String?, key:String?, value:String?)
     putAll(customerIdkey: String?, customerIdValue: String?, map: MutableMap<String, String>) 
  1. Below methods are deprecated:

    ``` Kotlin

    init(siteId: String, appVersion: String, idfa: String, devMode: Bool)

          init(siteId: String, appVersion: String, devMode: Bool)

          setOptIn(optIn: Boolean)

          setOptInPreference(optIn: Boolean)

          getOptInPreference(): Boolean

          isSpacePercentEncoded(): Boolean

          enablePercentEncodingForSpace(isSpacePercentEncoded: Boolean)

          setUserAgent(userAgent: String)

          getUserAgent(): String

          setAppContext(context: Context)

          getContext(): Context

 

         BlueKai(activity,context,devMode,siteId,appVersion,listener,handler)

         BlueKai( activity, context, devMode, httpsEnabled, siteId, appVersion, listener, handler )

         setOptInPreference:(BOOL) ```

  1. Approach for setting the properties has been changed. You can still set it in the previous way, but that's been deprecated. What is encouraged now is to set it via oracle.json. Refer Installation guide.

          Deprecated properties setter:

          set activity: Activity? = null

          set appVersion: String?

          set devMode: Boolean

          set httpsEnabled/p>

          set siteId: String?

          set handler

          Oracle CX Advertising SDK is always going to use Https, irrespective of value being passed. In future release, it will be removed.