Releases: braze-inc/braze-react-native-sdk
Releases · braze-inc/braze-react-native-sdk
11.0.0
Breaking
- Updates the native Android version bindings from Braze Android SDK 30.4.0 to 31.1.0.
Fixed
- Fixes an issue on Android where the
timestamp
of aPushNotificationEvent
was incorrectly translated from along
to aint
. The value received by the JavaScript layer is now the same as the value sent from the Android code.
10.0.0
Breaking
- Updates the native iOS version bindings from Braze Swift SDK 8.4.0 to 9.0.0.
Added
- Updates the native Android version bindings from Braze Android SDK 30.3.0 to 30.4.0.
9.2.0
9.1.0
Added
- Adds the
BrazeInAppMessage.isTestSend
property, which indicates whether an in-app message was triggered as part of a test send. - Updates the native iOS version bindings from Braze Swift SDK 8.1.0 to 8.2.1.
- Updates the native Android version bindings from Braze Android SDK 30.1.1 to 30.3.0.
Fixed
- Fixes the iOS implementation of
Braze.registerPushToken()
to correctly pass the device token to the native SDK.
9.0.0
Breaking
- Bumps React Native minimum requirement version to 0.71.0.
- For further details about levels of support for each React Native release, refer to Releases Support Policy in the React Working Group.
- Bumps the minimum required iOS version to 12.0.
- Updates the native iOS version bindings from Braze Swift SDK 7.5.0 to 8.1.0.
- Updates the native Android version bindings from Braze Android SDK 29.0.1 to 30.1.1.
8.4.0
Added
- Adds support to modify the allow list for Braze tracking properties via the following TypeScript properties and methods:
TrackingProperty
string enumTrackingPropertyAllowList
object interfaceupdateTrackingPropertyAllowList
method- For details, refer to the Braze iOS Privacy Manifest documentation.
- Deprecates the
setGoogleAdvertisingId
method in favor ofsetAdTrackingEnabled
.- This new method will now set
adTrackingEnabled
flag on iOS and both theadTrackingEnabled
flag and the Google Advertising ID on Android.
- This new method will now set
- Exposes the
ContentCardTypes
enum through the public TypeScript interface inindex.d.ts
. - Updates the native iOS bridge from Braze Swift SDK 7.5.0 to 7.7.0.
Fixed
- Fixes the
hasListeners
property in the iOS native layer to prevent duplicate symbol errors with other libraries. - Addresses redefinition build errors when using the iOS Turbo Module with statically linked frameworks.
8.3.0
Added
- Adds example integrations for Braze Rich Push Notifications and Braze Push Stories to the iOS sample app.
- Updates the native iOS bridge from Braze Swift SDK 7.3.0 to 7.5.0.
- Adds support for React Native 0.73.
- Removes strict Java version dependencies in the
build.gradle
file of the Braze library. - Updates the Braze sample app to use React Native version 0.73.1.
- Removes strict Java version dependencies in the
8.2.0
Added
- Updates the native iOS bridge from Braze Swift SDK 7.1.0 to 7.3.0.
- This release includes compatibility with Expo Notifications. Refer to the push notification setup documentation for more details.
Fixed
- Adds a missing update from Braze Android SDK 29.0.0 to 29.0.1 in the
8.1.0
release.
8.1.0
Added
- Push notification objects are now accessible in the JavaScript layer via new fields on the
PushNotificationEvent
interface.- Deprecates the following fields from the
PushNotificationEvent
interface in favor of the new names that can be used on both iOS and Android:push_event_type
-> Usepayload_type
instead.deeplink
-> Useurl
instead.content_text
-> Usebody
instead.raw_android_push_data
-> Use theandroid
object instead.kvp_data
-> Usebraze_properties
instead.
- Deprecates the following fields from the
- Adds iOS support for the listener event
Braze.Events.PUSH_NOTIFICATION_EVENT
.- On iOS, only
"push_opened"
events are supported, indicating the user interacted with the received notification. - The iOS event does not support the deprecated legacy fields mentioned above.
- On iOS, only
- Adds methods to manually perform the action of an In-App Message or Content Card when using a custom UI.
Braze.performInAppMessageButtonAction(inAppMessage, buttonId)
Braze.performInAppMessageAction(inAppMessage)
Braze.processContentCardClickAction(id)
- Updates the native iOS bridge from Braze Swift SDK 7.0.0 to 7.1.0.
Fixed
- Fixes the
setLastKnownLocation
method to sanitize null inputs before calling the native layer.- This previously caused an issue when calling this method on the legacy React Native architecture.
- Updates the native Android bridge from Braze Android SDK 29.0.0 to 29.0.1.
8.0.0
8.0.0
Breaking
- Updates the native Android bridge from Braze Android SDK 27.0.1 to 29.0.0.
- Updates the native iOS bridge from Braze Swift SDK 6.6.0 to 7.0.0.
- Renames the
Banner
Content Card type toImageOnly
:BannerContentCard
→ImageOnlyContentCard
ContentCardTypes.BANNER
→ContentCardTypes.IMAGE_ONLY
- On Android, if the XML files in your project contain the word
banner
for Content Cards, it should be replaced withimage_only
.
Braze.getFeatureFlag(id)
will now returnnull
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.
Added
- Adds
Braze.getUserId()
to get the ID of the current user.