2.2.5
ketanshikharebsft
released this
14 Jun 11:26
·
100 commits
to master
since this release
What's new?
- Added helper method
isBlueshiftCustomActionsPushNotification
to check if the push notification is of type Blueshift custom action butttons.
BlueShift.sharedInstance()?.isBlueshiftPushCustomActionResponse(response)
- Added helper method
parseCustomActionPushNotification
to get associated deep link URL and button name from the Blueshift custom action push notification payload.
let customActions:[AnyHashable : Any]? = BlueShift.sharedInstance()?.appDelegate?.parseCustomActionPushNotification(response.notification.request.content.userInfo, forActionIdentifier: response.actionIdentifier)
let deepLinkURL = customActions?["clk_url"] as? String
let buttonName = customActions?["clk_elmt"] as? String
- Added method to reset the
UUID
type of device id. In order to make use of this function, make sure you have set the device id source in SDK config as -config.blueshiftDeviceIdSource = .UUID
. It will not work for device id typeIDFV
orIDFV:BundleId
.
Calling this method will reset the existingUUID
device id, and SDK will generate a new device id. SDK will also send anidentify
event to update the device to Blueshift.
BlueShiftDeviceData.current().resetDeviceUUID()
- Removed code and files related to firing the
delivered
event for the push notification from the extension SDK, as Blueshift now provides the push delivery stats based on the APNS's response. Setting the API key to the extension SDK is not required anymore. Know more - Error object from the
fetchInAppNotification(fromAPI:)
API marked as optional. - Optimised the animation for slide-in banner in-app notification.
- Fixed image frame for Banner image modal in-app notification.
- Optimised in-app notification display for the sceneDelegate and non-sceneDelegate apps.
- Now SDK will fire the
app_open
event when the user taps on a Blueshift push notification, SDK will not fireapp_open
event when the user taps on a non-Blueshift push notification. - Fixed issue of event name getting overridden by the additional param attributes. Now, the event name has higher priority and it can not be altered from the additional param attributes.
- Deprecated the below SDK methods, and now SDK automatically detects when the app enters the background state and becomes active. There is no need of calling the below methods during SDK integration.
- appDidBecomeActive
- appDidEnterBackground
- sceneWillEnterForeground
- sceneDidEnterBackground
- Deprecated SDK config flag
isSceneDelegateConfiguration
, SDK now checks for scene delegate configuration dynamically if needed. - Deprecated SDK config flag
enableIDFACollection
as SDK does not collect the IDFA on its own, and the app needs to set this value to SDK. - Deprecated SDK config flag
enableLocationAccess
as SDK does not collect the location data on its own, and the app needs to set this value to SDK. - Deprecated SDK method
autoIntegration
. - Removed unused constants.
- Added more SDK logs.