CleverTap Flutter SDK v3.1.0
What's new
-
[Android Platform]
- Supports CleverTap Android SDK v7.1.2.
- Adds support for Flutter 3.29 by removing Embedding v1 support, which was deprecated long ago. If your project still relies on Embedding v1, follow the migration guide to update it. (by @rwrz)
- Adds support to hide large icon in android notifications by sending
wzrk_hide_large_icon
key in notification payload.
-
[iOS Platform]
- Supports CleverTap iOS SDK v7.1.0.
-
[Android and iOS Platform]
-
Adds support for triggering InApps based on first-time event filtering in multiple triggers. Now you can create campaign triggers that combine recurring and first-time events. For example: Trigger a campaign when "Charged" occurs (every time) OR "App Launched" occurs (first time only).
-
Adds new user-level event log tracking system to store and manage user event history. New APIs include:
getUserEventLog(<eventName>)
: Get details about a specific eventgetUserEventLogCount(<eventName>)
: Get count of times an event occurredgetUserLastVisitTs()
: Get timestamp of user's last app visitgetUserAppLaunchCount()
: Get total number of times user has launched the appgetUserEventLogHistory()
: Get full event history for current user
-
API Changes
- Deprecates: The old event tracking APIs tracked events at the device level rather than the user level, making it difficult to maintain accurate user-specific event histories, especially in multi-user scenarios. The following methods have been deprecated in favor of new user-specific event tracking APIs that provide more accurate, user-level analytics. These deprecated methods will be removed in future versions with prior notice:
eventGetDetail()
: UsegetUserEventLog()
instead for user-specific event detailseventGetOccurrences()
: UsegetUserEventLogCount()
instead for user-specific event countseventGetFirstTime()
: UsegetUserEventLog()
instead for user-specific first occurrence timestampeventGetLastTime()
: UsegetUserEventLog()
instead for user-specific last occurrence timestampsessionGetPreviousVisitTime()
: UsegetUserLastVisitTs()
instead for user-specific last visit timestampsessionGetTotalVisits()
: UsegetUserAppLaunchCount()
instead for user-specific app launch countgetEventHistory()
: UsegetUserEventLogHistory()
instead for user-specific event history
- Deprecates: The old event tracking APIs tracked events at the device level rather than the user level, making it difficult to maintain accurate user-specific event histories, especially in multi-user scenarios. The following methods have been deprecated in favor of new user-specific event tracking APIs that provide more accurate, user-level analytics. These deprecated methods will be removed in future versions with prior notice:
-