2.1.14
ketanshikharebsft
released this
01 Mar 13:36
·
317 commits
to master
since this release
What's new?
- Added Swift Package Manager support
- Ability to disable SDK’s event tracking capability at runtime.
- Disabling this will stop sending custom events and metrics for push and in-app to Blueshift’s servers. It will also remove any pending events (batched or real-time) that are yet to be sent.
/// Disable SDK events tracking
BlueShift.sharedInstance()?.enableTracking(false)
- Added a public method to accept in-app API’s response (as JSON) from the host app. This method will create the in-app using received JSON response.
BlueShift.sharedInstance()?.handleInAppMessage(forAPIResponse: dictonary, withCompletionHandler: { (status) in
})
- Added a public method to generate the request body required for Blueshift’s in-app API endpoint.
BlueShift.sharedInstance()?.getInAppNotificationAPIPayload(completionHandler: { (payload) in
//do something with the payload
})