SDK changelog



  • Updated Batch 1.21.
  • Batch requires iOS 12.0 or higher.
  • Batch now compiles with and targets SDK 34 (Android 14).


  • Removed automatic collection of the advertising id. You need to collect it from your side and pass it to Batch via the added batch.user.getEditor().setAttributionIdentifier(id) method.
  • Added setEmail method to BatchUserDataEditor. This requires to have a user identifier registered or to call the setIdentifier method on the editor instance beforehand.
  • Added setEmailMarketingSubscriptionState method to BatchUserDataEditor.


  • Added hasLandingMessage property to InboxNotification.
  • Added displayNotificationLandingMessage method to InboxFetcher.



  • Fix an issue where BatchBridgeNotificationCenterDelegate's automatic setup might result in an infinite loop on notification open.



  • Fix BatchBridgeNotificationCenterDelegate.automaticallyRegister not being honored.
  • Add compatibility for Capacitor 4.6: Batch's delegate now tries to register itself at a later time to keep compatibility with Capacitor's push plugins and Batch's features at the same time.



  • Updated Batch to 1.19.2. Bumping your Android project's compileSdkVersion to 33 might be required. Xcode 13.3 required if your project uses bitcode.


  • Added Android implementation of the batch.push.requestNotificationAuthorization() API. This allows you to request for the new notification permission introduced in Android 13. See the documentation for more info.



  • Updated Batch native SDKs to 1.19.1. Android requires SDK 32 to compile. Xcode 13.3 is required if you use bitcode.


  • Silent notifications are now filtered from the inbox on both platforms.



  • Updated Batch native SDKs to 1.18.1.


  • Added support for the URL attribute and event data type.



  • Fix an issue where the plugin could not be built in some environments due to BatchUserBridge.h.



  • Breaking change: Fixed an issue where on iOS, the push payload of the batchPushReceived event was under the payload key. It is now at the root of the event data, just like 2.x and on Android.
  • Batch Cordova now requires some ES2015 APIs such as promises.


  • iOS: Deprecated registerForRemoteNotifications by splitting it into two methods:
    • refreshToken, which should be called on every app start.
    • requestNotificationAuthorization, which should be called whenever you want to ask the user the permission to display notifications.
  • iOS: Added requestProvisionalNotificationAuthorization to request a provisional authorization on iOS 11 and higher.
  • iOS: Calling setiOSShowForegroundNotifications() under Capacitor now works as expected. It works by disabling Capacitor's control of the notification presentation (but Capacitor is still informed of notification events). Not calling this method preserves Capacitor's handling, which can be configured using @capacitor/push-notifications.
  • getLastKnownPushToken() now returns a Promise rather than taking a callback as a parameter.


  • The Inbox module has been fully rewritten to reach feature parity with the native SDKs:
    • batch.inbox.getFetcherForInstallation() and batch.inbox.getFetcherForUser() now return objects that are used to interact with the inbox.
    • Marking a notification as read, deleted or marking all notifications as read is now supported.
    • Fetching multiple pages is now supported.
    • Inbox page size and the limit of notifications to fetch are now configurable.

The new fetcher objects MUST be disposed by calling .dispose() once you are finished with them to free up memory.
See documentation for more info about migrating to the new Inbox API.


  • getInstallationID() now returns a Promise rather than taking a callback as a parameter. The promise's result can be undefinied if the Installation ID is unavailable.
  • Added getters for language/region and identifier in batch.user.



  • Changed the Plugin ID from com.batch.cordova to This fixes an issue where cordova prepare would reinstall an older version of the plugin if the plugins folder was missing.
    Cordova users: when updating please remove the old plugin via cordova plugin remove com.batch.cordova, then install the new one.
    Ionic Capacitor users: Nothing needs to be done as Capacitor integrates with NPM and the package.json natively.



  • Changed the Plugin ID from com.batch.cordova to This fixes an issue where cordova prepare would reinstall an older version of the plugin if the plugins folder was missing.
    Cordova users: when updating please remove the old plugin via cordova plugin remove com.batch.cordova, then install the new one.
    Ionic Capacitor users: Nothing needs to be done as Capacitor integrates with NPM and the package.json natively.


  • Android 12 compatibility: Added explicit android:exported values to the manifest entries added by the plugin.


This is a major release with breaking changes. Please see the migration guide for more info.


  • Renamed the plugin to It's cordova internal name is still com.batch.cordova due to cordova limitations.
    The plugin cordova name is used when managing plugins after installation.
  • Updated plugin for recent Cordova/Ionic versions.
    Batch Cordova's new version requirements are:
    • iOS >= 10.0
    • Android >= 5.0 (API 21)
    • Cordova CLI >= 9.0.0
    • Ionic CLI (if used) >= 6.0.0
    • cordova-android >= 9.0.0
    • cordova-iOS >= 6.0.0
  • Updated native Batch SDK to 1.17.
    Native SDK version can be configured using the BATCHSDK_ANDROID_VERSION and BATCHSDK_IOS_VERSION preferences.
    Please note that this version of the plugin will not work with earlier native Batch SDK versions.
  • Added Ionic Capacitor support. Requires Capacitor 2.4 or higher.
  • Fixed an issue where Cordova/Ionic would not properly write the required AndroidManifest lines.
  • Added support for dates in event data.
  • Removed event data tags/attributes limits from the Cordova plugin.
    This does not mean that those limits are gone, but that the native SDK will now enforce them so that the plugin doesn't have to be updated if and then these limits change.
    Current native limits are 15 attributes and 10 tags.


  • The plugin requires AndroidX to be enabled in your config.xml using <preference name="AndroidXEnabled" value="true" /> (Cordova only).
    Ionic users will need to add cordova-plugin-androidx-adapter.

  • The plugin doesn't depend on Firebase and appcompat anymore. Batch expects androidx.appcompat and Firebase Cloud Messaging to be in your application.
    This can be setup using the Firebase plugin of your choice:

    • We recommend cordova-plugin-firebase-messaging for Cordova.
      If you do not want to add Firebase to your iOS app, manual FCM integration steps are available in our integration documentation.
    • Capacitor comes with appcompat and FCM support out of the box, no extra plugin is needed.

    You will also be required to configure your google-services.json manually: this is described in the integration documentation and should be covered by your Firebase plugin's documentation.


  • The native SDK isn't bundled anymore: Cocoapods is now used to integrate Batch's native component.
  • The plugin now automatically sets a UNUserNotificationCenterDelegate to handle new iOS features.
    This enables configuration of foreground push behaviour: they can now be displayed in an alert just like if the user was outside of the application. It can be disabled by calling BatchBridgeNotificationCenterDelegate.automaticallyRegister = false as soon as possible in application:didFinishLaunchingWithOptions:.
  • Fixed a bug where notification opens on cold start would not work.
  • Fixed multiple mobile landings related bugs.
  • Fixed multiple batchPushReceived related bugs.
  • Fixed an issue where boolean custom data was saved as integers.


  • Hotfix: Lock the firebase versions to ones that work without androidx or compileSdkVersion 28
    If your app requires newer firebase dependencies, please stick to 2.3.1 in the meantime
    NOTE: The 2.x branch is the final one that comes with Firebase dependencies. 3.x will require you to manage them yourselves.


  • Lock the native SDK version to 1.13 due to complications regarding Cordova and the Java 8 sourcelevel


  • Added a way to disable Firebase configuration extraction, using a variable:
    Use cordova plugin add com.batch.cordova --variable BATCHSDK_ENABLE_ANDROID_BUILTIN_FIREBASE_CONFIG=false if you run into issues when using this plugin.
  • Fix an issue where trackTransaction did not work with integers on Android
  • Fix an issue where the SDK would fail if a developer removed console.log or console.debug


This update adresses a compatibility issue with cordova-plugin-firebase, that added conflicting ressources to the APK.

Important note: This brings the minimum cordova-plugin-firebase version Batch is compatible with to 2.0.4. This can be a breaking change.



Event data support has been overhauled. As a result:

  • Introduced BatchEventData. Use this class to attach attributes and tags to an event. See this class' documentation (available in index.d.ts) for more information about limits.
  • batch.user.trackEvent(name: string, label: string, data: {}) has been deprecated
  • Calls to this method will log deprecation warnings in the console
  • Legacy data (plain JS object) will be converted to BatchEventData. Same data format restrictions apply: Any key/value entry that can't be converted will be ignored, and logged. Tags are not supported.
  • Introduced Batch.User.trackEvent(name: string, label: string, data: BatchEventData), replacing the deprecated method.

More info in the event documentation.



Remove duplicated dependencies in plugin.xml: this completes the fix introduced in 2.0.4


Re-release 2.0.4 with the right version number in plugin.xml



Remove explicit dependency on "play-services-ads".
This may cause your application to stop giving Batch your users' Advertising ID.
To restore this functionality, please use a 3rd party plugin (or a gradle file) to add firebase-analytics to your app.
Doing so may require you to add a privacy policy to your app to stay in compliance with Play Store rules.


  • Fix an issue where Batch User editor's setIdentifier, setLanguage and setRegion did not accept null values


  • The plugin's Android hook now checks for cordova-plugin-firebase and tweaks its behaviour accordingly to prevent conflicts


  • Fixed an issue where iOS might not return the expected value in async calls
  • Implemented Inbox on iOS


Rewrote the plugin:

  • Native code is now included in the open-source repository, meaning that 3rd party developers can update the underlying native SDKs directly.
  • Plugin is fully definied in a typescript definition, improving documentation readability and Ionic support
  • Plugin is now testable
  • Cordova-plugin's versioning system will now differ from the native SDK versioning

Cordova 8 compatibility. Note: Users of earlier versions of cordova will have to downgrade to 1.7.4

Updated native SDKs to 1.12.0

Android now uses FCM to register for notifications: setGCMSenderId has been removed, and you will need to generate a google-services.json file to keep push notifications.


Hotfix: Added a package.json plugin descriptor

Note: Cordova 7 is not supported yet. This fix simply allows for the plugin to be installable with Cordova 7

Update native SDKs to the latest version
The plugin now depends on the appcompat-v7 library on Android
Added support for Mobile Landings
Added a "hasMobileLanding" property in the push event, so you can avoid doing some actions on a push that already displayed a mobile landing


Update native SDKs to 1.7
Added the ability to turn on foreground push delivery on Android (rather than delivering them in the notification center) to match iOS' behaviour.
The plugin now depends on the support-v4 library



  • Update native SDKs to 1.5.3



  • Update native SDKs to 1.5
  • Custom user data (attributes, tags and events)
  • Added an API to retrieve Batch's unique installation identifier
  • Deprecated BatchUserProfile
  • Added ability to start Batch in a service


Initial stable plugin release.