Breaking
- Fixes the Typescript type for the callback of
subscribeToInAppMessageandaddListenerforBraze.Events.IN_APP_MESSAGE_RECEIVED.- These listeners now properly return a callback with the new
InAppMessageEventtype. Previously, the methods were annotated to return aBrazeInAppMessagetype, but it was actually returning aString. - If you are using either subscription API, ensure that the behavior of your in-app messages are unchanged after updating to this version. See our sample code in
BrazeProject.tsx.
- These listeners now properly return a callback with the new
- The APIs
logInAppMessageClicked,logInAppMessageImpression, andlogInAppMessageButtonClickednow accept only aBrazeInAppMessageobject to match its existing public interface.- Previously, it would accept both a
BrazeInAppMessageobject as well as aString.
- Previously, it would accept both a
BrazeInAppMessage.toString()now returns a human-readable string instead of the JSON string representation.- To get the JSON string representation of an in-app message, use
BrazeInAppMessage.inAppMessageJsonString.
- To get the JSON string representation of an in-app message, use
- On iOS,
[[BrazeReactUtils sharedInstance] formatPushPayload:withLaunchOptions:]has been moved to[BrazeReactDataTranslator formatPushPayload:withLaunchOptions:].- This new method is a now a class method instead of an instance method.
- Adds nullability annotations to
BrazeReactUtilsmethods. - Removes the following deprecated methods and properties from the API:
getInstallTrackingId(callback:)in favor ofgetDeviceId.registerAndroidPushToken(token:)in favor ofregisterPushToken.setGoogleAdvertisingId(googleAdvertisingId:adTrackingEnabled:)in favor ofsetAdTrackingEnabled.PushNotificationEvent.push_event_typein favor ofpayload_type.PushNotificationEvent.deeplinkin favor ofurl.PushNotificationEvent.content_textin favor ofbody.PushNotificationEvent.raw_android_push_datain favor ofandroid.PushNotificationEvent.kvp_datain favor ofbraze_properties.
- Updates the native Android SDK version bindings from Braze Android SDK 39.0.0 to 40.0.2.
Added
- Adds
imageAltTextandlanguagefields toBrazeInAppMessagefor accessibility features. - Updates the native Swift SDK version bindings from Braze Swift SDK 13.2.0 to 13.3.0.