Releases: braze-inc/braze-flutter-sdk
Releases · braze-inc/braze-flutter-sdk
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!
10.1.0
Added
- Updated the Android Gradle plugin from
8.0.2
to8.1.1
. - Updated the native Android bridge from Braze Android SDK 30.3.0 to 30.4.0.
- Adds the
BrazeInAppMessage.isTestSend
property, which indicates whether an in-app message was triggered as part of a test send.
10.0.0
Breaking
- Updates the native iOS bridge from Braze Swift SDK 8.4.0 to 9.0.0.
Added
- Adds the
getDeviceId
method to replacegetInstallTrackingId
, which is now deprecated.
Fixed
- Fixes an issue where StrictMode DiskReadViolation was triggered on Android.
- Thanks @radivojeostojic for pointing this out.
9.0.0
Breaking
- Updates the native iOS bridge from Braze Swift SDK 7.7.0 to 8.4.0.
- The minimum iOS deployment target has been updated to 12.0.
- Updates the native Android bridge from Braze Android SDK 29.0.1 to 30.3.0.
- The minimum supported Dart version is
2.15.0
.
Added
- Push notification payloads are now accessible in the Dart layer by calling
subscribeToPushNotificationEvents(void Function(BrazePushEvent) onEvent)
. This allows you to run custom Dart code after a push is received or when a push is clicked.- On iOS, this callback can only be triggered for push click events.
- Reference our Flutter Push Notification documentation with details on how to utilize this feature.
- This feature is compatible with the
replayCallbacksConfigKey
to replay the push event callback for any notifications that were received prior to callingsubscribeToPushNotificationEvents
.
- Adds support for Braze tracking properties.
- Adds the
updateTrackingPropertyAllowList(allowList)
method to dynamically configure Braze tracking properties. - For further usage details, refer to the Swift privacy manifest documentation.
- Adds the
- Deprecates
setGoogleAdvertisingId(id, adTrackingEnabled)
in favor ofsetAdTrackingEnabled(adTrackingEnabled, id)
.
8.2.0
Added
- Updates the native iOS bridge from Braze Swift SDK 7.3.0 to 7.7.0.
- Adds example integrations for Braze Rich Push Notifications and Braze Push Stories to the iOS sample app.
Fixed
- Removes the automatic assignment of
BrazeDelegate
in the iOS native layer, allowing for custom implementations to be assigned to thebraze
instance.- The plugin now uses the
sdkAuthDelegate
property for the SDK Authentication feature instead.
- The plugin now uses the
8.1.0
Added
- Updates the native iOS bridge from Braze Swift SDK 7.2.0 to 7.3.0.
8.0.0
Breaking
- Updates the native Android bridge from Braze Android SDK 27.0.1 to 29.0.1.
- Updates the native iOS bridge from Braze Swift SDK 6.6.1 to 7.2.0.
- Modifies the behavior for Feature Flags methods.
BrazePlugin.getFeatureFlagByID(String id)
will now returnnull
if the feature flag does not exist.BrazePlugin.subscribeToFeatureFlags(void Function(List<BrazeFeatureFlag>) onEvent))
will only trigger in the following situations:- When a refresh request completes with success or failure.
- Upon initial subscription if there was previously cached data from the current session.
- The minimum supported Android SDK version is 21.
Fixed
- Moved the
compileSDKVersion
for Android down to 33 to match Flutter's versioning.
7.0.0
Breaking
- Updates the native Android bridge from Braze Android SDK 26.1.1 to 27.0.1.
- Adds support for Gradle 8.
Added
- Updates the native iOS bridge from Braze Swift SDK 6.3.0 to 6.6.1.
- Adds
BrazePlugin.logFeatureFlagImpression(String id)
to log a Feature Flag impression. - Adds support for custom user attributes to be nested objects.
BrazeUser.setNestedCustomUserAttribute()
BrazeUser.setCustomUserAttributeArrayOfObjects()
- You can specify that the Dictionary be merged with the existing value.
BrazeUser.setNestedCustomUserAttribute(string, Map<string, dynamic>, true)
- See https://www.braze.com/docs/user_guide/data_and_analytics/custom_data/custom_attributes/nested_custom_attribute_support/ for more information.
- Adds
BrazeUser.setCustomUserAttributeArrayOfStrings()
to set arrays of strings as a custom attribute. - Adds
BrazePlugin.getCachedContentCards()
to get the most recent content cards from the cache. - Adds
BrazePlugin.registerPushToken()
to send a push token to Braze's servers.- Deprecates
BrazePlugin.registerAndroidPushToken()
in favor of this new method.
- Deprecates
- Adds an example integration of iOS push notifications as well as custom scheme deep links, universal links (iOS), and app links (Android) to the Flutter sample app.