Public repo for the Braze React SDK
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.Braze.setCustomUserAttribute()
to correctly handle null values.
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.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.build.gradle
file of the Braze library.8.1.0
release.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.
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.