Documentation > Android


Let's get going! The very first step is to go to the dashboard and create your mobile app.

Registering a new app

Once your app is created, you'll find the API keys needed to set up the SDK in ⚙ Settings → General:

  • Dev API key: Use it for development or testing purposes. This API key won't trigger stats computation. Please take care not to ship an app on a Store with this API key.
  • Live API key: Should be used in a production environment only and in the final version of your app on the Store.

Now let's generate your Push keys and put them in Batch's Dashboard.

Getting your Sender ID and Server API Key

Batch is compatible with both GCM and FCM. Here are the two steps you need to take to find your Sender ID and your Server API Key:

First, go to the Google services wizard to enable Google Services and GCM for your projet. Once you are logged in, create a new app by filling your app name and package:

Create New App

On the next page, you will be presented with the available Google Services for your app. Click "Enable Google Cloud Messaging" if it is not already done.

Activate GCM

Once that's done, congratulations! You should see your GCM Server API Key and Sender ID.

Enabled GCM

Firebase users

In case you already migrated your project to Firebase, you can easily get your Sender ID and Server API key from Firebase's dashboard.

  1. On Firebase's dashboard, click on the ⚙ next to your app name and on "Project settings".
  2. Click on the "Cloud Messaging" tab and copy your Sender ID and your Server API Key.

FCM setup

Configuring Batch Push

Now go to ⚙ Settings → General on Batch's dashboard. Choose a default language and paste your GCM Server API Key in ⚙️ Settings → Push settings. You will also need to input the GCM Sender ID before the start method of Batch.

GCM Keys