@braze/react-native-sdk
Advanced tools
Changelog
9.0.0
Changelog
8.4.0
TrackingProperty
string enumTrackingPropertyAllowList
object interfaceupdateTrackingPropertyAllowList
methodsetGoogleAdvertisingId
method in favor of setAdTrackingEnabled
.
adTrackingEnabled
flag on iOS and both the adTrackingEnabled
flag and the Google Advertising ID on Android.ContentCardTypes
enum through the public TypeScript interface in index.d.ts
.hasListeners
property in the iOS native layer to prevent duplicate symbol errors with other libraries.Changelog
8.3.0
build.gradle
file of the Braze library.Changelog
8.2.0
8.1.0
release.Changelog
8.1.0
PushNotificationEvent
interface.
PushNotificationEvent
interface in favor of the new names that can be used on both iOS and Android:
push_event_type
-> Use payload_type
instead.deeplink
-> Use url
instead.content_text
-> Use body
instead.raw_android_push_data
-> Use the android
object instead.kvp_data
-> Use braze_properties
instead.Braze.Events.PUSH_NOTIFICATION_EVENT
.
"push_opened"
events are supported, indicating the user interacted with the received notification.Braze.performInAppMessageButtonAction(inAppMessage, buttonId)
Braze.performInAppMessageAction(inAppMessage)
Braze.processContentCardClickAction(id)
setLastKnownLocation
method to sanitize null inputs before calling the native layer.
Changelog
8.0.0
Banner
Content Card type to ImageOnly
:
BannerContentCard
→ ImageOnlyContentCard
ContentCardTypes.BANNER
→ ContentCardTypes.IMAGE_ONLY
banner
for Content Cards, it should be replaced with image_only
.Braze.getFeatureFlag(id)
will now return null
if the feature flag does not exist.Braze.Events.FEATURE_FLAGS_UPDATED
will only trigger when a refresh request completes with success or failure, and upon initial subscription if there was previously cached data from the current session.Braze.getUserId()
to get the ID of the current user.Changelog
7.0.0
6.0.0
where Braze.getInitialUrl()
may not trigger the callback on Android.setCustomUserAttribute
now accepts objects and arrays of objects.merge
parameter to the setCustomUserAttribute
method. This is a non-breaking change.Braze.setLastKnownLocation()
to set the last known location for the user.Braze.registerPushToken()
in the JavaScript layer to post a push token to Braze's servers.
Braze.registerAndroidPushToken()
in favor of Braze.registerPushToken()
.Braze.getCachedContentCards()
to get the most recent content cards from the cache, without a refresh.logFeatureFlagImpression(id)
.Changelog
6.0.1
'DEFINES_MODULE' => 'YES'
to the iOS Podspec when compiling the Turbo Module to prevent the need for static framework linkage when using the Braze Expo plugin.Changelog
6.0.0
0.70
or higher.RCTAppDelegate
.
RCTAppDelegate
and was following our previous AppDelegate
setup in the sample project or Braze documentation, you will need to reference our updated samples to prevent any crashes from occurring when subscribing to events in the new Turbo Module. ⚠️NativeBrazeReactModule
file to properly mock the Turbo Module functions in Jest.
subscribeToInAppMessages
or addListener
in the Javascript layer will no longer cause a custom BrazeInAppMessageUIDelegate
implementation on iOS to be ignored.Braze.addListener
for the inAppMessageReceived
event will subscribe in both the Javascript and the native layers (iOS + Android). This means it is no longer required to call Braze.subscribeToInAppMessage
.
subscribeToInAppMessage
to use the default In-App Message UI.0.70
+.getDeviceId
method to replace getInstallTrackingId
, which is now deprecated.build.gradle
file to prepare for React Native 0.73, which uses AGP 8.x.