18.0.0
Breaking
- Renames
Braze.Ecommerce.ProductViewedEvent.typeIdentifierstotypeon Swift and Objective-C API surfaces. - Renames Live Activities push-to-start update events on
Braze.LiveActivities.UpdateEvent.ActivityType, which are emitted when usingBraze.LiveActivities.subscribeToStateUpdates(_:):pushToStartOptedOut→pushToStartUnregisteredpushToStartOptOutFlushed→pushToStartUnregisterFlushed
Fixed
- Fixes the touch target size on in-app message close buttons to match the minimum recommended size in the Apple Human Interface Guidelines.
- Fixes a bug that prevented geofences from being registered with
CLLocationManagerwhenautomaticLocationCollectionwas disabled.
Added
- Adds two new APIs to unregister the device's push token or push-to-start tokens from the current user's profile.
braze.notifications.unregisterPush(completion:)removes the standard push token. This is also available asunregisterPush() async throwsand in Objective-C.braze.liveActivities.unregisterPushToStart(types:completion:)removes Live Activities push-to-start tokens for the given activity attribute types (default: remove all push-to-start tokens). This is also available asunregisterPushToStart(types:) async throwsbut supports Swift only.
- Adds a new logout method to unregister the device's push token and push-to-start tokens.
braze.logout(completion:)removes the push token and push-to-start tokens (if available), and then wipes all local data and disables the SDK on success. This is also available aslogout() async throwsand in Objective-C.