New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@braze/react-native-sdk

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@braze/react-native-sdk - npm Package Versions

234

14.0.0

Diff
appboy
published 14.0.0 •

Changelog

Source

14.0.0

Breaking
  • Resolves an Android issue with 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.
    • The previous behavior on Android would assign 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.
    • Customers who wish to retroactively rectify this are recommended to ask their users to confirm their dates of birth and call setDateOfBirth with these values.
  • Updates the native Android version bindings from Braze Android SDK 32.1.0 to 35.0.0.
    • The minimum required Android SDK version is 25. See more details here.
  • The NativeBrazeReactModule.ts file has been moved into a sub-directory called specs.
    • If your project contains direct references to this file, you will need to update the relative path of your imports to /specs/NativeBrazeReactModule.
    • For an example, refer to the sample test setup here.
Added
  • Updates the native iOS version bindings from Braze Swift SDK 11.2.0 to 11.7.0.
  • Adds support for the Braze Banner Cards product and APIs to utilize them.
    • 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.
  • Adds the default UI components for Braze Banner Cards.
    • To use this feature, insert the Braze.BrazeBannerView component into your view hierarchy with the required placementID property.
appboy
published 13.2.0 •

Changelog

Source

13.2.0

Added
  • Updates the native iOS version bindings from Braze Swift SDK 11.1.1 to 11.2.0.
  • Updates the Android bridge to add compatibility with React Native version 0.77.0.
    • Updates the Braze sample app to use React Native version 0.77.0.
  • Adds the setIdentifierForAdvertiser and setIdentifierForVendor methods to set the IDFA and IDFV, respectively (iOS only). This is a no-op on Android.
appboy
published 13.1.1 •

Changelog

Source

13.1.1

Fixed
  • Resolves an iOS issue that would deallocate existing references of braze.delegate when performing a hot reload of the app.
appboy
published 13.1.0 •

Changelog

Source

13.1.0

Fixed
  • Updates the iOS sample app to properly retain the 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.
Added
  • Updates the native iOS version bindings from Braze Swift SDK 11.0.0 to 11.1.1.
  • Adds the method 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.
    • If you are using Braze.getInitialPushPayload(), add the following code to your application:didFinishLaunchingWithOptions:launchOptions::
    [[BrazeReactUtils sharedInstance] populateInitialPayloadFromLaunchOptions:launchOptions];
    
    This replaces populateInitialUrlFromLaunchOptions, which is now deprecated.
appboy
published 13.0.0 •

Changelog

Source

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.

Breaking
appboy
published 12.2.0 •

Changelog

Source

12.2.0

Added
  • Updates the native iOS version bindings from Braze Swift SDK 10.1.0 to 10.3.0.
  • Updates the Braze sample app to use React Native version 0.75.2.
  • Updates the Braze sample app to show how to support GIFs in in-app messages and content cards on iOS.
  • Adds the ability to conditionally import the android-sdk-location Braze library in gradle.properties via importBrazeLocationLibrary=true.
appboy
published 12.1.0 •

Changelog

Source

12.1.0

Added
appboy
published 12.0.0 •

Changelog

Source

12.0.0

Breaking
  • Updates the native iOS version bindings from Braze Swift SDK 9.0.0 to 10.0.0.
    • When subscribing to push notification events, the subscription will be triggered on iOS for both "push_received" and "push_opened", instead of only for "push_opened" events.
Added
  • Updates the Braze sample app to use React Native version 0.74.1.
  • Adds support for 3 new Feature Flag property types and various APIs for accessing them:
    • getFeatureFlagTimestampProperty(id, key) for accessing Int Unix UTC millisecond timestamps as numbers.
    • getFeatureFlagImageProperty(id, key) for accessing image URLs as strings.
    • getFeatureFlagJSONProperty(id, key) for accessing JSON objects as object types.
appboy
published 11.0.0 •

Changelog

Source

11.0.0

Breaking
Fixed
  • Fixes an issue on Android where the 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.
appboy
published 10.0.0 •

Changelog

Source

10.0.0

Breaking
Added