CleverTap Flutter SDK v1.7.0
·
206 commits
to master
since this release
ChangeLog:
What's new
- Adds support for Remote Config Variables. Please refer to the Remote Config Variables doc to read more on how to integrate this to your app.
- Adds new API
dismissInbox()
to dismiss the App Inbox screen. - Adds new APIs,
markReadInboxMessagesForIDs(List<String>)
anddeleteInboxMessagesForIDs(List<String>)
to mark read and delete an array of Inbox Messages respectively. - Supports CleverTap Android SDK v5.0.0
- Supports CleverTap iOS SDK v5.0.1
API Changes
Deprecated: The following methods and classes related to Product Config and Feature Flags have been marked as deprecated in this release, instead use new Remote Config Variables feature. These methods and classes will be removed in the future versions with prior notice.
-
Product config
setDefaultsMap
fetch
activate
fetchAndActivate
setMinimumFetchIntervalInSeconds
resetProductConfig
getProductConfigString
getProductConfigBoolean
getNumber
getLastFetchTimeStampInMillis
-
Feature flags
getFeatureFlag
Breaking Change
- Streamlines the payload for various callbacks across Android and iOS platform. Refer doc for detailed changes.
- [Android and iOS platforms] Signature change of the
CleverTapInboxNotificationMessageClickedHandler
callback]:
It is changed fromCleverTapInboxNotificationMessageClickedHandler(Map<String, dynamic>? data)
toCleverTapInboxNotificationMessageClickedHandler(Map<String, dynamic>? data, int contentPageIndex, int buttonIndex)
. ThecontentPageIndex
corresponds to the page index of the content, which ranges from 0 to the total number of pages for carousel templates. For non-carousel templates, thecontentPageIndex
value is always 0, as they only have one page of content. ThebuttonIndex
corresponds to the the App Inbox button clicked (0, 1, or 2). A value of -1 inbuttonIndex
field indicates the entire App Inbox Item is clicked.
Changes
- [Android Platform] Behavioral change of CleverTap.CleverTapInboxMessageTapped listener: Previously, the callback was raised when the App Inbox item is clicked. Now, it is also raised when the App Inbox button is clicked. It matches the behavior in iOS platform.
Bug Fixes
- Fixes a bug where App Inbox was not respecting the App Inbox background color when no tabs are provided.
- Fixes the non-EU retry mechanism bug.
- Fixes the data handling exception that is thrown by the
processPushNotification(dynamic data)
API.