Accengage Android apps

Step-by-step instructions to migrate your Android app from Accengage to WonderPush

👍

Migrating to WonderPush is easy: all you have to do is add WonderPush to your app and publish a new version to Google Play.

Users that install this new version can be reached via WonderPush and the others via Accengage without risking to send duplicate messages.

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

🚧

WonderPush and Accengage SDKs expect different push notification formats, so importing your Android push tokens into WonderPush is not very useful. Instead, just let users install the new version of your app and automatically migrate to WonderPush.

Shipping WonderPush in a new version of your app

Step 1. Removing Accengage gradle entries

Open your app/build.gradle and remove the dependency you added during the Accengage setup.

compile 'com.ad4screen.sdk:A4SSDK:3.8.1'

Step 2. Remove Accengage code from your app

Open your ApplicationClass and remove the Accengage initialization snippet:

public class MainActivity extends AppCompatActivity {
 
    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        // Remove next line
        A4S.get(this).setIntent(intent);
        // ...
    }
 
    @Override
    protected void onResume() {
        super.onResume();
        // Remove next line
        A4S.get(this).startActivity(this);
        // ...
    }
 
    @Override
    protected void onPause() {
        super.onPause();
        // Remove next line
        A4S.get(this).stopActivity(this);
        // ...
    }
}

Or, if you've opted to inherit from A4SApplication, simply change back to android.app.Application.

Also remove any other code that calls the Accengage library within your entire app's codebase.

Step 3. Add WonderPush

Follow our Android Quickstart guide to add WonderPush to your app.

Once you've got WonderPush in your app, publish a new version. Users that update their app will automatically appear in your WonderPush dashboard.

👍

That's it!

Once you publish this new version of your app, users will start to show up automatically in your WonderPush dashboard.