@braze/react-native-sdk
Advanced tools
Changelog
14.0.0
setDateOfBirth(year, month, day)
introduced in 1.38.0
, where the month was indexed 0-11 instead of 1-12. The months are now indexed from 1-12 on both Android and iOS.
setDateOfBirth(1970, 1, 1)
to the month of February instead of the intended month of January, and setDateOfBirth(1970, 12, 1)
to null
instead of the intended month of December.setDateOfBirth
with these values.NativeBrazeReactModule.ts
file has been moved into a sub-directory called specs
.
/specs/NativeBrazeReactModule
.Braze.requestBannersRefresh(placementIds)
- to request a refresh of the banners associated with the provided placement IDs. On iOS only, failures will be logged if unsuccessful.Braze.getBanner(placementId)
- to get a banner with the provided placement ID if available in cache, otherwise returns null.Braze.Events.BANNER_CARDS_UPDATED
event for Braze.addListener
- to subscribe to banners updates.Braze.BrazeBannerView
component into your view hierarchy with the required placementID
property.Changelog
13.2.0
setIdentifierForAdvertiser
and setIdentifierForVendor
methods to set the IDFA and IDFV, respectively (iOS only). This is a no-op on Android.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
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