Note: This will be one of the last releases with Android SDK min of 21, it will be moving to SDK 24 in one of the coming releases.
Breaking
- BannerView:
BannerDismissSnapshotfields passed toonDismissCallbackare now non-null. If the SDK cannot resolveplacementId,stableKey, ortrackingId, the callback is skipped and a warning is logged.
Fixed
- Fixed the
android-sdk-jetpack-composeMaven metadata to publish BOM-managed Compose dependencies, includingandroidx.compose.material:material, soContentCardsListcan resolve Material pull refresh classes without requiring apps to add Material 2 manually. - Fixed a potential ANR when backgrounding the app while a default HTML In-App Message WebView is visible (for example when using
BrazeActivityLifecycleCallbackListenerwith the default persist-WebView-on-background behavior).WebView.onPause()is now deferred until afteronActivityPausedreturns.
Added
- Banners: Added
Braze.dismissBanner(placementId)/IBraze.dismissBannerto dismiss a Banner by placement ID programmatically. - Added structured eCommerce event logging via
IBraze.logEcommerceEvent/Braze.logEcommerceEventwitheCommerceEvent: EcommerceEvent. IncludesEcommerceEvent,EcommerceProduct, and concrete eventsCheckoutStartedEvent,CartUpdatedEvent,OrderPlacedEvent, andProductViewedEvent, with built-in field validation, ISO 4217 currency enforcement, and automatic serialization.