How to implement mobile push on iOS/Android?

Welcome to Batch!

Batch allows you to communicate with your customers on every contact point on mobile and desktop sending push notifications or displaying In-app messages.

A full integration of Batch takes a week on average and is divided into five steps:

  1. Account creation - Required

  2. SDK integration - Required

  3. API setup - Optional

1. Account Creation

You can create an account now on https://batch.com/registerarrow-up-right.

We recommend that you invite your team members from the account manager sectionarrow-up-right, in the bottom left corner of your dashboard, under "My team" > "Add member".

circle-info

Feel free to contact us at support@batch.comenvelope if your account is not on the correct plan.

2. SDK Integration

Once your account is created, add your first apps to the dashboard and follow the instructions described in the documentation: iOS / Android / Flutter / React native / Cordova.

  • SDK integration

  • Push setup

  • In-app messaging setup

triangle-exclamation

We recommend these additional steps after completing the basic integration:

These optional steps might be necessary depending on your needs:

circle-exclamation

3. Profile Data Collection

In addition to the data the SDK collects nativelyarrow-up-right in your app, you can collect Profile data to improve your user segmentation.

Custom User ID

Batch can collect a unique user ID (iOSarrow-up-right / Androidarrow-up-right / Flutterarrow-up-right / React Nativearrow-up-right /Cordovaarrow-up-right) that will uniquely identify user Profiles and centralize profile data from attached devices. This is a recommended step if your app has a login wall or if users can create an account inside your app.

You can use that Custom user ID with the Profile API to:

  • send events to trigger 1-to-1 push notifications to one or several user IDs (e.g., package delivery notification, etc) ;

  • send profile data (attributes, events, or arrays) to Batch to enrich a user's profile data.

circle-info

User ID collection also allows your teams to target with one click users who are/are not logged in (see has custom user IDarrow-up-right).

circle-exclamation

Custom Language/Region

Batch automatically detects the language and the country of your users’ devices.

If your app is available in multiple languages and/or multiple countries, we recommend that you overwrite the values automatically detected by Batch: iOSarrow-up-right / Androidarrow-up-right / Flutterarrow-up-right / React Nativearrow-up-right / Cordovaarrow-up-right.

Tagging Plan

In addition to the data collected natively by the SDK (e.g., last visit date, installation date, etc), you can collect additional information on your users and feed Batch with non-user-centric data.

👉 Refer to our dedicated guide on How to create a Tagging Plan?arrow-up-right.

circle-exclamation

Test and Release

Before releasing your apps to the stores, please follow the steps from these guides to review the implementation:

4. Push token migration

Batch can import existing tokens in case you migrate from another push provider.

In this case, please refer to our documentation on migrating Mobile Push to Batch.

5. API setup

With Batch RESTful APIs, you can easily send profile data and trigger push notifications to leverage Batch’s engagement features:

  • The Profile API allows you to create and enrich user profiles with profile data such as attributes, events, and arrays. This data can then be used to create segments or trigger messages.

  • The Campaign API allows you to send one-shot push notification campaigns to your segments built based on chosen criteria.

  • The Export API allows you to retrieve your campaigns' performance data to feed your analytics or BI tools with more insights.

circle-exclamation

Last updated