Releases: BatchLabs/Batch-Android-SDK
Releases · BatchLabs/Batch-Android-SDK
1.20.1
User
- Fixed an issue on
BatchUserDataEditor
where data wasn't sent when usingsetEmail
orsetEmailMarketingSubscriptionState
.
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.
1.19.4
Messaging
- Fixed an issue for In-App Webview format where Batch would get the wrong deeplink url for an image embedded into a hyperlink.
1.19.3
Core
- Fixed an issue where Batch would crash when advertising ID collection is enabled and the Firebase Messaging library is not present
1.19.2
Core
- Batch now compiles with and targets SDK 33 (Android 13).
- Improved support for Android 13 Tiramisu.
- Added a new API:
Batch.Push.requestNotificationPermission(context)
. This allows you to request for the new notification permission introduced in Android 13. See the documentation for more info. - Fixed an issue where
BatchNotificationChannelsManager.openSystemChannelSettings(context)
wasn't working with an application context.
Actions
- Added
batch.android_smart_reoptin
, which asks the user the notification permission or redirect to the notification settings. - Added
batch.android_redirect_settings
, which redirects the user to the notification settings.
1.18.3
Messaging
- Fixed a display issue on Modals with an image but no title.
1.19.1
Core
- Fixed a rare crash on Wiko devices when a high priority push was received in battery saving mode.
Event Dispatcher
- Fixed a crash that could happen when using Batch SDK 1.19+ with ATInternet or Firebase dispatcher plugins < 3.0.
Messaging
- Fixed a display issue on Modals with an image but no title.
1.19.0
Core
- Batch now compiles and targets SDK 32 (Android 12L).
- Important change: Batch now declares to use the
android.permission.POST_NOTIFICATIONS
permission in its manifest. If you want to remove it, add<uses-permission android:name="android.permission.POST_NOTIFICATIONS" tools:node="remove" />
in your app's AndroidManifest. - Fixed some rare ANRs produced when receiving push.
- Identical push messages sent twice by FCM will now only be displayed once.
- Batch will now try to display FCM high priority push notifications directly rather than scheduling a Job.
Event Dispatchers
- Added
getName
andgetVersion
onBatchEventDispatcher
. If you are using a Batch dispatcher plugin, please update it.
Messaging
- Added global frequency capping management for in-app campaigns.
- Improved the way In-App campaigns are triggered.
- Added just-in-time verification for in-app campaigns.
Inbox
- Added the ability to disable the filtering of silent notifications on
BatchInboxFetcher
using thesetFilterSilentNotifications
method. - Important change: Silent notifications are now filtered by default: use the new property if you relied on the previous behaviour.
This brings the Android SDK in line with its iOS counterpart, which has always filtered silent notifications as expected.
1.18.2
Core
- Fixed an issue where the AAR's shrinking would result in classes being repackaged as generic names outside of "com.batch.android".
This could have caused package collisions in some cases. The shrinking behaviour now matches pre-1.18 releases.
Messaging
- Fixed some rare crashes and improved out of memory handling in In-App Messaging.
- Improved error handling in WebView In-Apps. They should now behave more like a browser when encountering load failures.
- Changed the way In-App campaigns start and end dates are computed on Samsung devices to be more reliable.
- Prevent Xiaomi devices from overriding theme colors in dark mode.
Debug
- Fixed an issue where the FindMyInstallation feature could lead to a crash.