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:
launchNewsFeedrequestFeedRefreshgetNewsFeedCardslogNewsFeedCardClickedlogNewsFeedCardImpressiongetCardCountForCategoriesgetUnreadCardCountForCategoriesBraze.Events.NEWS_FEED_CARDS_UPDATEDBraze.CardCategory
Fixed
- Fixes an issue where
getDeviceID()did not return when an error occurred. - Fixes the Android implementation of the
FeatureFlagobject to return the correct values for timestamp, image, and JSON objects. Prior to this change, the following APIs would returnundefinedon Android:Braze.getFeatureFlagTimestampProperty(id)Braze.getFeatureFlagJSONProperty(id)Braze.getFeatureFlagImageProperty(id)
- Fixes the
FeatureFlagTimestampPropertyobject type to bedatetimeinstead oftimestamp. - Fixes an issue where passing a null value for
googleAdvertisingIdtosetAdTrackingEnabled()could cause a crash on Android.
Added
- Adds support for Banner properties via new public methods for
Banner:banner.getStringProperty(key:)for accessingStringproperties.banner.getNumberProperty(key:)for accessingnumproperties.banner.getTimestampProperty(key:)for accessingintUnix UTC millisecond timestamp properties.banner.getBooleanProperty(key:)for accessingboolproperties.banner.getImageProperty(key:)for accessing image URL properties asStrings.banner.getJSONProperty(key:)for accessing JSON properties asMap<String, dynamic>.
- Deprecates the following static methods in favor of new
FeatureFlaginstance methods:Braze.getFeatureFlagStringProperty(flagId, propertyKey), instead useflag.getStringProperty(key)Braze.getFeatureFlagBooleanProperty(flagId, propertyKey), instead useflag.getBooleanProperty(key)Braze.getFeatureFlagNumberProperty(flagId, propertyKey), instead useflag.getNumberProperty(key)Braze.getFeatureFlagTimestampProperty(flagId, propertyKey), instead useflag.getTimestampProperty(key)Braze.getFeatureFlagJSONProperty(flagId, propertyKey), instead useflag.getJSONProperty(key)Braze.getFeatureFlagImageProperty(flagId, propertyKey), instead useflag.getImageProperty(key)