@braze/react-native-sdk
Advanced tools
Changelog
13.1.1
braze.delegate
when performing a hot reload of the app.Changelog
13.1.0
BrazeReactDelegate
instance. Internally, the Braze SDK uses a weak reference to the delegate, which could be deallocated if not retained by the app. This change ensures the delegate is retained for the lifecycle of the app.Braze.getInitialPushPayload()
to get the push notification payload when opening the app via notification click while the application was in a terminated state.
Braze.getInitialURL()
is now deprecated in favor of Braze.getInitialPushPayload()
. To access the initial URL, use the new method to receive the push notification payload, and access the value of the url
key.Braze.getInitialPushPayload()
, add the following code to your application:didFinishLaunchingWithOptions:launchOptions:
:[[BrazeReactUtils sharedInstance] populateInitialPayloadFromLaunchOptions:launchOptions];
This replaces populateInitialUrlFromLaunchOptions
, which is now deprecated.Changelog
13.0.0
⚠️ Important: This version includes a Swift SDK version with a known issue related to push subscription status. Upgrade to version 13.1.0
instead.
Changelog
12.2.0
android-sdk-location
Braze library in gradle.properties
via importBrazeLocationLibrary=true
.Changelog
12.0.0
"push_received"
and "push_opened"
, instead of only for "push_opened"
events.getFeatureFlagTimestampProperty(id, key)
for accessing Int Unix UTC millisecond timestamps as number
s.getFeatureFlagImageProperty(id, key)
for accessing image URLs as string
s.getFeatureFlagJSONProperty(id, key)
for accessing JSON objects as object
types.Changelog
11.0.0
timestamp
of a PushNotificationEvent
was incorrectly translated from a long
to a int
. The value received by the JavaScript layer is now the same as the value sent from the Android code.Changelog
10.0.0
Changelog
9.2.0
Braze.setCustomUserAttribute()
to correctly handle null values.
Changelog
9.1.0
BrazeInAppMessage.isTestSend
property, which indicates whether an in-app message was triggered as part of a test send.Braze.registerPushToken()
to correctly pass the device token to the native SDK.