Batch Cordova apps

Step-by-step instructions to migrate your Batch Cordova app to WonderPush

👍

Migrating to WonderPush is easy, in most cases all you have to do is add WonderPush to your app and publish a new version to the AppStore.
When users install the new version, they will automatically be added to WonderPush.

This guide will help you remove Batch from your app and add WonderPush.

Step 1. Removing your the Batch Cordova plugin

In a terminal at the root of your project, type:

cordova plugin remove com.batch.cordova

Step 2. Remove Batch code

In the www folder of your cordova app, identify and remove all the code related to Batch.

For example, remove such entries:

batch.setConfig({"androidAPIKey":"<YOUR_ANDROID_APIKEY>",
            "iOSAPIKey":"<YOUR_IOS_APIKEY>"});
batch.start();

Step 3. Add WonderPush

Follow our Cordova Quickstart to add WonderPush to your app.

👍

That's it, test and publish this new version of your app and watch your users automatically migrate to WonderPush as they install it.