Releases: braze-inc/braze-react-native-sdk
Releases · braze-inc/braze-react-native-sdk
1.41.0
⚠ Breaking
- Removed
setFacebookData()
. - Removed
setTwitterData()
.
Changed
- Updated the native Android bridge to Braze Android SDK 23.3.0.
- Exposes
isControl
field forContentCard
. - Removed
kotlinVersion
gradle template variable. To override the Kotlin version used, please use a Gradle dependencyresolutionStrategy
.
1.40.0
⚠ Breaking
- Updated the native Android bridge to Braze Android SDK 23.2.1.
- Updated the native iOS bridge to Braze iOS SDK 4.5.1.
Changed
- Updated the
React
podspec dependency toReact-Core
.
1.39.0
⚠ Breaking
- Renamed the
kotlin_version
gradle template variable tokotlinVersion
. - Updated the native Android bridge to Braze Android SDK 23.2.0.
Fixed
- Fixed an issue that caused a NativeEventEmitter warning message to appear.
1.38.1
Fixed
- Fixed an issue introduced in 1.38.0 where
setEmail
did not work as expected on Android.
1.38.0
⚠ Breaking
- Updated the native Android bridge to Braze Android SDK 23.0.1.
- Updated the native iOS bridge to Braze iOS SDK 4.5.0.
- The Braze React Native Android SDK now requires Kotlin directly for compilation. An example is included below:
buildscript { ext.kotlin_version = '1.6.0' dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } }
Added
- Introduced
Braze.Events.PUSH_NOTIFICATION_EVENT
which can be used to listen for Braze Push Notification events on Android. See example below:Braze.addListener(Braze.Events.PUSH_NOTIFICATION_EVENT, function(data) { console.log(`Push Notification event of type ${data.push_event_type} seen. Title ${data.title}\n and deeplink ${data.deeplink}`); console.log(JSON.stringify(data, undefined, 2)); });
- Added
Braze.requestPushPermission()
to request a permissions prompt for push notifications.
1.37.0
⚠ Breaking
- The Braze React Native SDK now exports its default object as an ES Module. If you currently import the SDK using
require()
, you will need to now import it as a standard ES Module (e.g.import Braze from "react-native-appboy-sdk"
).
Added
- Introduced
Braze.subscribeToInAppMessage()
which publishes an event to the Javascript layer when an in-app message is triggered and allows you to choose whether or not to use the default Braze UI to display in-app messages.
1.36.0
⚠ Breaking
- Updated the native Android bridge to Braze Android SDK 21.0.0.
- Updated the native iOS bridge to Braze iOS SDK 4.4.4.
- Removed
setAvatarImageUrl()
. - Removed
logContentCardsDisplayed
. This method was not part of the recommended Content Cards integration and can be safely removed.
1.35.1
Fixed
- Fixed an issue introduced in 1.35.0 where
setMetadata
did not have a method implementation for Android.
1.35.0
⚠ Breaking
- Updated the native iOS bridge to Braze iOS SDK 4.4.2.
- Drops support for iOS 9 and 10.
1.34.1
Fixed
- Fixed an issue where
getInitialUrl
would not resolve when there is no initial URL.