Skip to content

Releases: BatchLabs/Batch-Android-SDK

1.19.4

01 Feb 12:55

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

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

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

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

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

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

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

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.

1.18.0

25 Nov 17:08

Choose a tag to compare

Core

  • Fixed detection of indonesian, hebrew and yiddish languages.
  • Improved how the device locale is detected to better support language variations.
  • Fixed an issue where the direct opens weren't always tracked in singleTop/singleTask activities using onNewIntent.

Events

  • The event tracker now retries less aggressively in deteriorated network conditions.
  • Added URL type (using java.net.URI) in event data.

Attributes

  • Added URL type in custom attributes.

Messaging

  • Fixed an issue where in-app campaigns could lead to a crash of the app when swiping to dismiss.
  • Added support for Activity Exclusion. This allows to easily exclude some activities such as a splash screen from Batch rather than having to implement a Do Not Disturb mode. Intent forwarding is automatically handled by the SDK.

Push

  • Added compatibility with FCM Tokens. Batch now supports firebase-messaging 22.0.0 natively without having to add firebase-iid.

Inbox

  • Batch will now cache notifications marked as read or deleted to avoid any synchronization issues.
  • Method isDeleted() from BatchInboxNotificationContent is now deprecated.

Debug

  • Fixed an issue where the debug activity would show the advertising identifier even if it was disabled. The bug was purely cosmetic and the identifier was not sent to Batch.
  • Batch will now copy the installation ID to the clipboard when the application is foregrounded multiple times in a short timespan. This is enabled by default, you can disable it at any moment by using Batch.setFindMyInstallationEnabled(false).

1.17.3

04 Nov 17:24

Choose a tag to compare

Event Dispatchers

  • Fixed an issue where event dispatchers added via Batch.EventDispatcher.addDispatcher() were unregistered when Batch stopped: they will stay registered.
    Statically declared (such as Batch's builtin ones) were unregistered and re-registered on start: those are now loaded only once in the Application's lifetime.