@braze/react-native-sdk
Advanced tools
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.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