1.20.0
Core
- Batch now compiles with and targets SDK 34 (Android 14 'Upside Down Cake').
- Fixed a rare issue where the SDK could trigger an ANR on start when upgraded from an older version.
Push
- Improved notification image by making notifications taller if possible and changing scaling type to Center Fit.
User
- Added
Batch.User.editor().setEmail(email)
method. This requires to have a user identifier registered or to call thesetIdentifier
method on the editor instance beforehand. - Added
Batch.User.editor().setEmailMarketingSubscriptionState(BatchEmailSubscriptionState)
method to subscribe to the email marketing list.
Inbox
- Added the ability to know if a
BatchLandingMessage
has been displayed from the inbox via theisDisplayedFromInbox()
method. - Added the ability to know if a notification has a landing message attached on
BatchInboxNotificationContent
using thehasLandingMessage()
method. - Added the ability to display a landing message attached to a
BatchInboxNotificationContent
using thedisplayLandingMessage(context)
method.