Skip to content

CleverTap Flutter SDK v3.1.0

Compare
Choose a tag to compare
@Anush-Shand Anush-Shand released this 03 Mar 10:42
· 9 commits to master since this release
c2c5e61

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]

  • [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 event
      • getUserEventLogCount(<eventName>): Get count of times an event occurred
      • getUserLastVisitTs(): Get timestamp of user's last app visit
      • getUserAppLaunchCount(): Get total number of times user has launched the app
      • getUserEventLogHistory(): 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(): Use getUserEventLog() instead for user-specific event details
        • eventGetOccurrences(): Use getUserEventLogCount() instead for user-specific event counts
        • eventGetFirstTime(): Use getUserEventLog() instead for user-specific first occurrence timestamp
        • eventGetLastTime(): Use getUserEventLog() instead for user-specific last occurrence timestamp
        • sessionGetPreviousVisitTime(): Use getUserLastVisitTs() instead for user-specific last visit timestamp
        • sessionGetTotalVisits(): Use getUserAppLaunchCount() instead for user-specific app launch count
        • getEventHistory(): Use getUserEventLogHistory() instead for user-specific event history