Cordova > Advanced

SDK changelog

Change log and release notes for the Batch SDK.

2.2.0 - 12/11/2018

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

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

2.1.0 - 25/10/2018

Events

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.

2.0.6 - 12/10/2018

Android

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

2.0.5 - 11/10/2018

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

2.0.4 - 08/10/2018

Android

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.

2.0.3 - 14/09/2018

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

2.0.2 - 28/05/2018

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

2.0.1 - 18/05/2018

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

2.0.0 - 09/05/2018

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.

1.7.4 - 09/05/2017

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

1.7.4 - 28/02/2017

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

1.7.2 - 01/12/2016

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

1.5.3 - 21/04/2016

New:

  • Update native SDKs to 1.5.3

1.5 - 03/02/2016

New:

  • 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

1.4 - 10/09/2015

Initial stable plugin release.