Releases: braze-inc/braze-flutter-sdk
Releases · braze-inc/braze-flutter-sdk
14.0.3
14.0.2
Important
This release reverts the increase to the minimum Android SDK version of the Braze Android SDK from API 21 to API 25 introduced in 34.0.0. This allows the SDK to once again be compiled into apps supporting as early as API 21. However, we are not reintroducing formal support for < API 25. Read more here.
Fixed
- Fixes a display issue introduced in
14.0.1
when changing a Banner dynamically. - The
minSdk
enforced by the Flutter Android layer is now downgraded from25
to21
, matching theminSdk
in the Android native layer.
14.0.1
14.0.0
14.0.2
instead.
Breaking
- Updates the native Android bridge from Braze Android SDK 35.0.0 to 36.0.0.
- Updates the native iOS bridge from Braze Swift SDK 11.9.0 to 12.0.0.
Fixed
- Fixes an issue on iOS where
getUserId()
would not return any value if the user was anonymous.- This API will now return
null
if the user is anonymous.
- This API will now return
- Fixes the iOS implementation of
setDateOfBirth
to correctly report dates using the Gregorian calendar instead of the user's device calendar.- Previously, the SDK would re-format the input date components with the device's calendar settings if they were non-Gregorian.
- Fixes the in-app message data model to reflect the correct types under the following circumstances:
- HTML in-app messages will now reflect their correct type
html
, instead of the defaultslideup
type. - Full in-app messages will now reflect their correct type
full
, instead of incorrectly being marked ashtml_full
. HTML full messages will still continue to work as expected.
- HTML in-app messages will now reflect their correct type
13.0.0
14.0.2
instead.
Breaking
- Updates the native Android bridge from Braze Android SDK 33.0.0 to 35.0.0.
- The minimum required Android SDK version is 25. See more details here.
Added
- Adds support for the Braze Banner Cards product and APIs to utilize them.
BrazePlugin.requestBannersRefresh(List<String> placementIds)
- to request a refresh of the banners associated with the provided placement IDs. This must be called at least once to set the list of banners to retrieve. On iOS only, failures will be logged if unsuccessful.BrazePlugin.getBanner(String placementId)
- to get a banner with the provided placement ID if available in cache, otherwise returns null.BrazePlugin.subscribeToBanners(void Function(List<BrazeBanner>) onEvent)
- to subscribe to the stream of banners and call [onEvent] when it receives the list of banners.
- Adds the
BrazeBannerView
widget to display a Banner Card directly in Dart.- To use this feature, insert the widget
BrazeBannerView(placementId:)
into your Dart view hierarchy with the relevantplacementId
. - Reference our integration in our sample app.
- To use this feature, insert the widget
- Updates the native iOS bridge from Braze Swift SDK 11.6.1 to 11.9.0.
12.1.1
Added
- Updates the native iOS bridge from Braze Swift SDK 11.6.0 to 11.6.1.
12.1.0
Added
- Updates the native iOS bridge from Braze Swift SDK 11.3.0 to 11.6.0.
12.0.0
Breaking
- Updates the native iOS bridge from Braze Swift SDK 10.3.1 to 11.3.0.
- Updates the native Android bridge from Braze Android SDK 32.1.0 to 33.1.0.
11.1.0
Added
- Updates the native iOS bridge from Braze Swift SDK 10.2.0 to 10.3.1.
11.0.0
Breaking
- Updates the native Android bridge from Braze Android SDK 30.4.0 to 32.1.0.
- Changes the behavior of
wipeData()
on Android to retain external subscriptions (likesubscribeToContentCards()
) after being called.
- Changes the behavior of
- Updates the native iOS bridge from Braze Swift SDK 9.0.0 to 10.2.0.
Added
- Adds support for 3 new Feature Flag property types:
featureFlag.getTimestampProperty(String key)
for accessing Int Unix UTC millisecond timestamps asint?
s.featureFlag.getJSONProperty(String key)
for accessing JSON objects asMap<String, dynamic>?
types.featureFlag.getImageProperty(String key)
for accessing image URLs asString?
s.
- Adds the
getUserId()
method to get the ID of the current user. This method will returnnull
if the current user is anonymous. - Adds the
hideCurrentInAppMessage()
method, which dismisses the currently displayed in-app message.
Fixed
- Fixes an issue on Android where push notification stream subscriptions were not receiving events after clicking on a push notification when the app was in a terminated state.
- Thank you @Neelansh-ns for the contribution!