Repository navigation
Releases
Releases · CleverTap/clevertap-react-native
4.6.0
What's new
-
[Android Platform]
- Supports CleverTap Android SDK v8.6.0.
- Send Test previews (In-App, App Inbox, Display Unit) are now shown only when the preview push actually reached the SDK. If your app renders push notifications itself, its Android notification code must keep calling the native
CleverTapAPImethodpushNotificationViewedEvent(extras)after showing the notification. This is not part of the React Native JS API. - A very large queue of waiting In-Apps is now dropped instead of crashing the app with an
OutOfMemoryError.
-
[iOS Platform]
- Adds experimental Swift Package Manager support for React Native 0.87 and later (
npx react-native spm). CocoaPods keeps working as before. See iOS with Swift Package Manager. - Documents the CocoaPods
sourceline to add to yourios/Podfileahead of CocoaPods trunk becoming read-only on December 2, 2026. Existing installs are unaffected. See the iOS install instructions.
- Adds experimental Swift Package Manager support for React Native 0.87 and later (
Bug Fixes
-
[iOS Platform]
- Fixes
setOptOut(userOptOut, true)ignoringallowSystemEventsanddiscardInAppNotifications(dismissInAppIfVisible)receiving a wrong value on the New Architecture. Affected versions 3.8.0 to 4.5.0.
- Fixes
-
[Android Platform]
- Fixes a crash when showing a full-screen custom HTML In-App with a very large payload, and re-shows a full-screen In-App if the app was killed while it was on screen.
- Fixes a startup crash in minified release builds made with AGP 9.
- Fixes SSL pinning (
CLEVERTAP_SSL_PINNING) silently falling back to normal HTTPS. If you use pinning with a custom proxy or handshake domain, make sure its certificate chains to an Amazon Trust Services root. - Adds WorkManager 2.9.1 to 2.10.2 compatibility.
4.5.0
What's new
-
[Android Platform]
- Supports CleverTap Android SDK v8.5.0.
- Supports Live Updates - a single ongoing notification that is refreshed in place over the course of a campaign. These arrive as standard push notifications and are rendered by the native SDK, so there is no JavaScript API to call. Setup and any custom rendering are done on the Android side of your app.
- The App-Launch In-App can now wait up to 3 seconds for personalized content before showing.
- Fixes App Inbox video not playing when switching tabs, App-Launch In-Apps with recommendations showing twice, and In-App / Native Display day and week frequency caps resetting one period late.
-
[iOS Platform]
- Supports CleverTap iOS SDK v7.9.0.
- Adds support for In-App campaigns personalized with recommendations, so only one In-App is shown on app launch. Native Display units from a recommendations response are now merged by unit ID instead of replacing the existing set.
- Fixes event name and property validation warnings being replayed on later calls.
-
[Android and iOS Platform]
- Adds Native Display frequency caps. Call pushDisplayUnitViewedEventForID once per real impression, as it now counts toward the caps.
- Native Display split-click and view attribution - per-element and per-slide (carousel) clicks and views are attributed.
API changes
- [Android and iOS Platform]
- Adds
pushDisplayUnitElementViewedEventForID(unitID, additionalProperties)- records a view of a single slide or element of a Native Display unit. - Adds
fetchNativeDisplayMeta()- requests fresh Native Display frequency-cap rules mid-session.
- Adds
Bug Fixes
- [iOS Platform]
- Fixed a crash on the New Architecture when reporting a Display Unit element click. The native method for
pushDisplayUnitElementClickedEventForIDused the selector labelwithAdditionalProperties:, which did not match the TurboModule spec parameter nameadditionalProperties. On the New Architecture the mismatch raised anunrecognized selectorexception. - Fixed a crash on the New Architecture when registering a push token through
pushRegistrationToken. The native method used the selector labelwithPushType:, which did not match the TurboModule spec parameter namepushType.
- Fixed a crash on the New Architecture when reporting a Display Unit element click. The native method for
4.4.0
What's new
-
[iOS Platform]
- Supports CleverTap iOS SDK v7.8.2.
-
[Android and iOS Platform]
- Multi-instance support — one app can now talk to several CleverTap accounts.
CleverTap.createInstance(config)creates an additional account from JavaScript andCleverTap.getInstance(accountId)returns the handle of an existing one. A handle has the same methods asCleverTap, but every call and listener on it goes to that one account. The top-levelCleverTapobject keeps addressing the default (manifest / plist) account exactly as before. See the Multiple CleverTap Accounts guide. - Launch configs — list additional accounts in your
Application/AppDelegateso they are created at process start like the default account and receive push notifications and launch-time content from the first screen. Android: pass them toCleverTapRnAPI.initReactNativeIntegration(context, launchConfigs)or overrideCleverTapApplication.launchConfigs(). iOS: callapplicationDidLaunchWithOptions:launchConfigs:. - The
Highencryption level (all stored data, not only PII) is documented and reachable from JavaScript through theencryptionLevelkey ofcreateInstance. The default account sets it with value2in the existingCLEVERTAP_ENCRYPTION_LEVEL/CleverTapEncryptionLevelkeys.
- Multi-instance support — one app can now talk to several CleverTap accounts.
API changes
-
[Android Platform]
- Adds
CleverTapRnAPI.initReactNativeIntegration(context, launchConfigs), theCleverTapLaunchConfigclass and theCleverTapApplication.launchConfigs()override hook. Existing one-argument calls keep working.
- Adds
-
[iOS Platform]
- Adds
-[CleverTapReactManager applicationDidLaunchWithOptions:launchConfigs:]and theCleverTapReactLaunchConfigclass. - Behavior change: callback methods now report an error (
CleverTap is not initialized) when the addressed account does not exist. Previously most of them never called back. Android already behaved this way; its error text isCleverTap not initialized.
- Adds
-
[Android and iOS Platform]
- Adds
createInstance(config)andgetInstance(accountId), the account handle (CleverTapInstance) and theCleverTapInstanceConfigandCleverTapEventSubscriptionTypeScript types. addListenernow returns a subscription object; callsubscription.remove()to detach that one handler.createInstancevalidates its config: a missing or emptyaccountId/accountToken, a value of the wrong type, orcleverTapIdwithoutuseCustomCleverTapId: truerejects the promise with codeEINVALID; a native creation failure rejects withECREATE.- Behavior change:
CleverTap.removeListener(eventName)now removes only the listeners added throughCleverTap.addListener. Previously it removed every listener for that event name app-wide, including ones other libraries added on the raw event emitter. - Behavior change: after
setInstanceWithAccountId('B'), top-level listeners receive only account B's events. Previously they received the old and the new account's events merged. - Behavior change: calling
NativeModules.CleverTapReact.*directly is not supported and now breaks: every bridge method gained a trailing account argument, and old-architecture Android throwsgot N arguments, expected N+1. Always call through theCleverTapobject.
- Adds
Bug Fixes
- [iOS Platform]
- Fixes a bug where In-App campaigns triggered by custom events could not match device and app properties.
- Fixes a bug where discarded event names were stored in preferences and sent back to the server on every request.
- Fixes a bug where stored Client-Side and Server-Side In-Apps were cleared when the delivery mode was missing.
4.3.1
Bug Fixes
- [Android Platform]
- Fixes a rare crash at app startup that could occur when a listener is registered at the same moment the SDK is delivering buffered events,by locking the event buffer on writes as well as drains.
- Fixes a crash and occasional loss of remote-config variables when they are defined while updated values arrive from the server, by holding them in a thread-safe map.
4.3.0
What's new
-
[Android Platform]
- Supports CleverTap Android SDK v8.4.1.
- Accessibility improvements across in-apps and App Inbox — dynamic text scaling, screen-reader announcements, content descriptions for close buttons/images/media controls, a larger 48dp dismiss tap target, and corrected carousel navigation for TalkBack.
- Custom-HTML header and footer in-apps now render when the host Activity is not a
FragmentActivity(for example Unity or Unreal game engines). Opt in with theCLEVERTAP_INAPP_FRAGMENTLESS_BANNERSmanifest flag; it is off by default, so existing apps are unaffected.
-
[iOS Platform]
- Supports CleverTap iOS SDK v7.8.1.
- Accessibility improvements across in-apps and App Inbox — VoiceOver labels, a larger dismiss-button tap area, and better handling of image content descriptions.
-
[Android and iOS Platform]
- Spin-the-Wheel and Scratch Card gamified in-app templates — available to campaigns built with the Advanced InApp Builder, no app-side wiring needed.
- Per-element click attribution for in-apps — the
Notification Clickedevent now records which element of the in-app was tapped, across all templates. Tap-outside(iOS) and swipe-to-dismiss(Android and iOS) gestures are now configurable per campaign and are tracked asNotification Clickedevents too.
API changes
- [Android and iOS Platform]
- Adds
dismissPipInApp()— dismisses the Picture-in-Picture in-app notification currently on screen. It does nothing when no PiP in-app is visible, and never affects other in-app types.
- Adds
Bug Fixes
-
[Android Platform]
- Fixes App Inbox messages never being saved on Android 6.0 through Android 10 (API 23–29), which left the inbox permanently empty on those devices. Affects every app using App Inbox on RN SDK v4.1.0 and v4.2.0; messages reappear on the next inbox fetch after updating, with no code change on your side.
- Fixes the built-in App Inbox not repainting the message list after a pull-to-refresh — newly fetched messages previously appeared only after closing and reopening the inbox.
- Fixes a crash when a Picture-in-Picture in-app played video on Android 6.0. Only affects apps whose
minSdkVersionis below 24; the same fix also covers in-app and App Inbox video playback on that OS version. - Fixes a rare NPE that occurs when the push permission prompt is triggered from a background thread by ensuring it is launched on the main thread.
-
[iOS Platform]
- Fixes the built-in App Inbox not repainting the message list after a pull-to-refresh — newly fetched messages previously appeared only after closing and reopening the inbox.
- Fixes in-apps that were missed while the app was in the background not being shown when the app returned to the foreground.
- Fixes the
Notification Clickedevent not carrying deeplink properties for custom-HTML in-apps. - Fixes client-side in-apps not being persisted when an empty campaign list was received.
- Fixes full-screen cover in-apps built with the Advanced InApp Builder not respecting the device safe area.
- Fixes two potential crashes — one while saving variable diffs, and one during simultaneous variable updates.
4.2.0
What's new
-
[Android Platform]
- Supports CleverTap Android SDK v8.3.0.
- App Inbox Cross-Device Sync — inbox state (read, deleted) syncs across a user's devices automatically. Includes a pull-to-refresh gesture in the built-in
showInbox()view, throttled to once every 5 minutes.
-
[iOS Platform]
- Supports CleverTap iOS SDK v7.7.1.
- App Inbox Cross-Device Sync — inbox state (read, deleted) syncs across a user's devices automatically. Includes a pull-to-refresh gesture in the built-in App Inbox view, throttled to once every 5 minutes.
- Silent-in-foreground push notifications via the
wzrk_sif:truepayload key — server-controlled, no app-side wiring needed when usingautoIntegrate.
API changes
- [Android and iOS Platform]
- Adds a new API
fetchInbox(callback?)to trigger an on-demand inbox refresh. The callback is optional and receives(error, success)once the fetch completes. Throttled to once every 5 minutes between consecutive calls.fetchInbox()— fire-and-forgetfetchInbox((err, success) => { ... })— with completion callback
- Adds a new API
pushDisplayUnitElementClickedEventForID(unitID, additionalProperties)to record aNotification Clickedevent for a specific element within a Native Display Unit.additionalPropertiesis merged with cachedwzrk_*attribution fields for finer-grained click analytics.
- Adds a new API
Bug Fixes
- [iOS Platform]
- Fixes a bug where server-side InApps evaluation IDs were being duplicated in UserDefaults.
- Fixes a bug where apps were freezing when InApps were being shown in low network conditions.
4.1.0
What's new
-
[Android Platform]
- Supports CleverTap Android SDK v8.1.0.
- Adds Picture-in-Picture In-App Notifications support.
- Adds GIF and video media support in InApp templates.
-
[iOS Platform]
- Supports CleverTap iOS SDK v7.6.0.
- Adds Picture-in-Picture In-App Notifications support.
- Adds GIF and video media support in InApp templates.
API changes
- [Android and iOS Platform]
- Adds a new API
unmute()to clear a backend-imposed mute state, resuming network operations immediately.unmute()
- Adds a new API
Breaking Changes
- [Android Platform]
- Raises the minimum supported Android API level to 23.
- Deprecates ExoPlayer integration. Migrate to Media3 before upgrading to v5.0.0.
4.0.0
What's new
-
[Android Platform]
- Supports CleverTap Android SDK v8.0.0.
-
[iOS Platform]
- Supports CleverTap iOS SDK v7.5.1.
Bug Fixes
- [iOS Platform]
- Fixes a bug where
CleverTapInAppNotificationShowedwas not called.
- Fixes a bug where
3.9.0
What's new
-
[Android Platform]
- Supports CleverTap Android SDK v7.8.0.
-
[iOS Platform]
- Supports CleverTap iOS SDK v7.5.0.
-
[Android and iOS Platform]
- Adds support for inaction in-app notifications. This server-side feature allows triggering in-app notifications when users do not perform specific actions within a defined timeframe.
- Adds support for nested objects ingestion in event and profile properties, enabling more complex data structures for richer user profiling and event tracking.
3.8.1
What's new
- [iOS Platform]
- Supports CleverTap iOS SDK v7.4.2.
Bug Fixes
- [iOS Platform]
- Fixes a bug where DOB value is passed incorrectly when performing profile events.
- Optimizes app initialization sequence by loading variable and variant caches earlier in the startup process.