Skip to content

Releases: BatchLabs/Batch-Android-SDK

1.20.1

15 Sep 15:49
Compare
Choose a tag to compare

User

  • Fixed an issue on BatchUserDataEditor where data wasn't sent when using setEmail or setEmailMarketingSubscriptionState.

1.20.0

27 Jul 12:26
Compare
Choose a tag to compare

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 the setIdentifier 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 the isDisplayedFromInbox() method.
  • Added the ability to know if a notification has a landing message attached on BatchInboxNotificationContent using the hasLandingMessage() method.
  • Added the ability to display a landing message attached to a BatchInboxNotificationContent using the displayLandingMessage(context) method.

1.19.4

01 Feb 12:55
Compare
Choose a tag to compare

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

23 Sep 08:23
Compare
Choose a tag to compare

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

25 Aug 21:01
Compare
Choose a tag to compare

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

15 Jun 14:07
Compare
Choose a tag to compare

Messaging

  • Fixed a display issue on Modals with an image but no title.

1.19.1

03 Jun 09:15
Compare
Choose a tag to compare

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

31 Mar 14:06
Compare
Choose a tag to compare

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 and getVersion on BatchEventDispatcher. 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 the setFilterSilentNotifications 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

23 Feb 10:11
Compare
Choose a tag to compare

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.

1.18.1

26 Nov 19:07
Compare
Choose a tag to compare

Core

  • Fixed a crash that could happen when using APIs (such as Batch.optOut()) when the SDK isn't started.