Skip to main content
All CollectionsPush NotificationsiOS
How do mobile push notifications work?
How do mobile push notifications work?

Everything you wanted to know about iOS / Android push notifications but were afraid to ask.

Baptiste avatar
Written by Baptiste
Updated over a year ago

Batch relies on Apple (APNS: Apple Push Notification Service) and Google (FCM: Firebase Cloud Messaging) push services to send push notifications on iOS and Android.

Understanding How Batch's SDK Works

Batch SDK must be integrated into your app. Your integration is attached to an app on Batch's side thanks to the "API key" you specified in your code when you completed the integration.

On the first app open, the SDK will start and Batch will register a new install. For every new install, Batch generates an anonymous "installation ID". 

All the data collected from the app until users uninstall it will be attached to that "installation ID":

Collecting a Push Token

In order to send a push notification to a device, Batch needs to collect a "token". That  token is anonymous and delivered by Apple and Google push services:

Here is how Batch collects a new token:

  1. The app requests and receives a token from APNS/FCM. On iOS, this can happen when the app starts or when users accept push notifications, depending on the background refresh support (see more here).

  2. Batch SDK collects that token and sends it to Batch servers. 

The token is refreshed on every app start. This makes sure Batch always has a valid token to push your user.

Sending a Push Notification

In order to send a push notification to several devices, Batch servers provide the list of tokens that need to be pushed to the Apple / Google push notification service. Batch also provides a payload, containing all the data the app needs to display properly the notification (message, image, deeplink, etc).

Then, Apple/Google push notification service handles the delivery to the device. They provide feedback on errors or issues (e.g. invalid tokens, push certificate issues, etc). Batch cleans automatically your userbase based on this feedback. Batch SDK also sends feedback to Batch Servers when users click a notification.


This article belongs to Batch's FAQ. Need more help? Find insightful articles, documentation, case & market studies, guides, and even more in our website's Resources section on batch.com and our blog.

Did this answer your question?