New callback onCleverTapPushPermissionResponseReceived available which returns after user Allows/Denies notification permission Usage can be found here
New callback onCleverTapInAppNotificationShow(JSONObject)
Adds support for Remote Config Variables. Please refer to the Variables.md file to
read more on how to integrate this to your app.
Adds new API, markReadInboxMessagesForIds(messageIDs) to mark read an array of
Inbox Messages.
deleteInboxMessagesForIds(messageIDs) is now supported in Android as well.
Adds new API, dismissInbox() to dismiss the App Inbox.
API Changes
Deprecated: The following methods and callbacks 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 callbacks will be removed in the future versions with prior notice.
Product config
setDefaultsMap()
fetch()
fetchWithMinimumFetchIntervalInSeconds()
activate()
fetchAndActivate()
setMinimumFetchIntervalInSeconds()
getLastFetchTimeStampInMillis()
getString()
getBoolean()
getLong()
getDouble()
reset()
callback onCleverTapProductConfigDidInitialize
callback onCleverTapProductConfigDidFetch
callback onCleverTapProductConfigDidActivate
Feature flags
getFeatureFlag()
callback onCleverTapFeatureFlagsDidUpdate
Breaking API Changes
Return value change of onCleverTapInboxItemClick callback: callback returns JSONObject with below entries
data corresponds to the payload of clicked inbox item
The contentPageIndex 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, the value is always 0, as they only have one page of content.
The buttonIndex represents the index of the App Inbox button clicked (0, 1, or 2). A value of -1 indicates the App Inbox item is clicked.
Behavioral change of onCleverTapInboxItemClick callback:
Previously, the callback was raised when the App Inbox Item is clicked.
Now, it is also raised when the App Inbox button and Item is clicked.
New Features
isPushPermissionGranted(successCallback)
Usage can be found herepromptPushPrimer(JSONObject)
Usage can be found herepromptForPushPermission(boolean)
Usage can be found hereonCleverTapPushPermissionResponseReceived
available which returns after user Allows/Denies notification permission Usage can be found hereonCleverTapInAppNotificationShow(JSONObject)
markReadInboxMessagesForIds(messageIDs)
to mark read an array of Inbox Messages.deleteInboxMessagesForIds(messageIDs)
is now supported in Android as well.dismissInbox()
to dismiss the App Inbox.API Changes
Deprecated: The following methods and callbacks 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 callbacks will be removed in the future versions with prior notice.
Product config
setDefaultsMap()
fetch()
fetchWithMinimumFetchIntervalInSeconds()
activate()
fetchAndActivate()
setMinimumFetchIntervalInSeconds()
getLastFetchTimeStampInMillis()
getString()
getBoolean()
getLong()
getDouble()
reset()
onCleverTapProductConfigDidInitialize
onCleverTapProductConfigDidFetch
onCleverTapProductConfigDidActivate
Feature flags
getFeatureFlag()
onCleverTapFeatureFlagsDidUpdate
Breaking API Changes
onCleverTapInboxItemClick
callback: callback returnsJSONObject
with below entriesdata
corresponds to the payload of clicked inbox itemcontentPageIndex
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, the value is always 0, as they only have one page of content.buttonIndex
represents the index of the App Inbox button clicked (0, 1, or 2). A value of -1 indicates the App Inbox item is clicked.onCleverTapInboxItemClick
callback: