Releases: sailthru/sailthru-mobile-react-native-sdk
Sailthru Mobile React Native SDK 3.2.0-beta
Features
This is a beta release to test out our new purchase and abandoned cart functionality in the SDK. The API for this functionality may be subject to change in the final release.
Purchases can be logged through the SDK using the Carnival.logPurchase()
method. Abandoned carts can be logged using the Carnival.logAbandonedCart()
method.
Documentation for these methods is also still a work in progress but can be found in our documentation.
Sailthru Mobile React Native SDK 3.1.0
Geo IP Location Tracking
We have added the option to set whether geo location is enabled or disabled by default. This can be accessed in the constructors for the Bridge classes on both iOS and Android. For more details see our docs. As a result of this the constructors for these classes have also been refactored, with the old methods deprecated.
We have also added a variation of the setGeoIPTrackingEnabled method with a response handler for if you want to be able to check and handle the result of the call.
Sailthru Mobile React Native SDK 3.0.3
Bug Fixes
- Updates the embedded native iOS SDK to the latest version
Sailthru Mobile React Native SDK 3.0.2
Bug Fixes
Incorporates the latest bug fixes from the native SDKs:
- iOS version 8.2.3
- Android version 7.0.2
Sailthru Mobile React Native SDK 3.0.1
Bug Fixes
Incorporates the latest bug fixes from the native SDKs:
- iOS version 8.2.2
- Android version 7.0.1
Sailthru Mobile React Native SDK 3.0.0
Features
Push Registration
Push registration on the iOS platform has been updated: now the SDK will always register for remote notifications and receive a push token. Don't worry, you still have control over whether the SDK requests authorization to display alerts, sounds and/or badges - the step which requires a pop-up displayed to the user - it just means that we will have a push token for each device right from the start.
Additionally, for iOS 12+ devices if you opt out of requesting push authorization when calling startEngine
, the SDK will request provisional authorization instead, allowing pushes to be sent only to the notification tray for that device. Note that a pop-up is not displayed for provisional authorization.
AndroidX
Android is now running on AndroidX! The Sailthru Mobile React Native SDK pulls in the AndroidX version of the native Android SDK by default. If your app has already upgraded to use AndroidX the new version should integrate normally. If you have not yet upgraded you can upgrade in Android Studio using Refactor -> Migrate to AndroidX...
. If the tool does not need to make any changes you can simply add the appropriate settings to your app's gradle.properties file:
android.enableJetifier=true
android.useAndroidX=true
Sailthru Mobile React Native SDK 2.3.0
Features
Push Notifications Settings
We have updated how our 'Push Enabled' state is assessed and represented. A full breakdown of the possible states and what they represent in terms of settings on the handset can be found in the Carnival Developer Documentation.
Custom Event Vars
Custom events provided to the platform can now contain vars, contained in a JSON object, that will be sent along with the event name. These events are now also passed through to the Lifecycle Optimiser and can be used to generate and guide flows. More details about Custom Events can be found in the Carnival Developer Documentation.
Sailthru Mobile React Native SDK 2.2.0
Features
Handling Sailthru Links
- The React Native SDK can now decode and handle links sent in Sailthru emails. Details on how links should be handled, including platform specific details for iOS and Android, can be found in the Carnival Developer Documentation.
Sailthru Mobile React Native SDK 2.1.0
Features
Sailthru Profile Vars
Sailthru Profile Vars can now be set and retrieved through the SDK. They can be set using the Carnival.setProfileVars()
method and retrieved using the Carnival.getProfileVars()
method. More details can found in the Carnival Developer Documentation.
Sailthru Mobile React Native SDK 2.0.0
Features
New name! The Carnival React Native SDK is now the Sailthru Mobile React Native SDK. Don't worry, this won't change anything, it's just how it will be referred to from here onwards.
Latest Functionality
The React Native SDK has been updated to work with the latest and greatest Android and iOS SDKs, and a range of new methods have been added. Details on how to use the available React Native methods can be found in the Carnival Developer Documentation.
Track and Personalize
Track and Personalize can now be used through the React Native SDK. You can use the Carnival.getRecommendations() method to get an array of personalized content from Sailthru's SPM service, provided you have Sailthru integrated.
To recommend your users the right content, you can track the content they interact with by calling the Carnival.trackPageview(), Carnival.trackImpression() and Carnival.trackClick() methods. More information on integrating SPM can be found in our docs, and more in-depth mobile integration advice can be found in the Carnival Developer Documentation.
Initialization Changes
Initialisation functionality has been updated! The Carnival.startEngine()
and Carnival.setDisplayInAppNotifications()
methods have been removed from React Native, they are now handled in the native initialisation. Details on how the native platform initialization should be handled can be found in the Carnival Developer Documentation.
Bug Fixes
- Fixes an issue with session reporting on Android app launches
- Fixes an issue with imported React headers on iOS