yarn @braze/react-native-sdk 17.0.0

5 hours ago

17.0.0

Breaking
  • Updates the native Android SDK version bindings from Braze Android SDK 37.0.0 to 39.0.0.
  • Removes support for News Feed. The following APIs have been removed:
    • launchNewsFeed
    • requestFeedRefresh
    • getNewsFeedCards
    • logNewsFeedCardClicked
    • logNewsFeedCardImpression
    • getCardCountForCategories
    • getUnreadCardCountForCategories
    • Braze.Events.NEWS_FEED_CARDS_UPDATED
    • Braze.CardCategory
Fixed
  • Fixes an issue where getDeviceID() did not return when an error occurred.
  • Fixes the Android implementation of the FeatureFlag object to return the correct values for timestamp, image, and JSON objects. Prior to this change, the following APIs would return undefined on Android:
    • Braze.getFeatureFlagTimestampProperty(id)
    • Braze.getFeatureFlagJSONProperty(id)
    • Braze.getFeatureFlagImageProperty(id)
  • Fixes the FeatureFlagTimestampProperty object type to be datetime instead of timestamp.
  • Fixes an issue where passing a null value for googleAdvertisingId to setAdTrackingEnabled() could cause a crash on Android.
Added
  • Adds support for Banner properties via new public methods for Banner:
    • banner.getStringProperty(key:) for accessing String properties.
    • banner.getNumberProperty(key:) for accessing num properties.
    • banner.getTimestampProperty(key:) for accessing int Unix UTC millisecond timestamp properties.
    • banner.getBooleanProperty(key:) for accessing bool properties.
    • banner.getImageProperty(key:) for accessing image URL properties as Strings.
    • banner.getJSONProperty(key:) for accessing JSON properties as Map<String, dynamic>.
  • Deprecates the following static methods in favor of new FeatureFlag instance methods:
    • Braze.getFeatureFlagStringProperty(flagId, propertyKey), instead use flag.getStringProperty(key)
    • Braze.getFeatureFlagBooleanProperty(flagId, propertyKey), instead use flag.getBooleanProperty(key)
    • Braze.getFeatureFlagNumberProperty(flagId, propertyKey), instead use flag.getNumberProperty(key)
    • Braze.getFeatureFlagTimestampProperty(flagId, propertyKey), instead use flag.getTimestampProperty(key)
    • Braze.getFeatureFlagJSONProperty(flagId, propertyKey), instead use flag.getJSONProperty(key)
    • Braze.getFeatureFlagImageProperty(flagId, propertyKey), instead use flag.getImageProperty(key)

Don't miss a new react-native-sdk release

NewReleases is sending notifications on new releases.