How to allow users to unsubscribe from push notifications on iOS?

You may want to offer your users a system to disable push notifications from your app.

1. Redirect users to the phone's settings

On iOS, redirecting users to the phone's settings is the only 100% reliable way to disable push notifications.

You can use the [BatchPush openSystemNotificationSettings] (Objective C) or the BatchPush.openSystemNotificationSettings() (Swift) method.

2. Take advantage of Batch's segmentation engine

However, some apps offer the option to disable push notifications directly within the app.

A. Tag users' optin status

Create a boolean is_push_optin attribute, true when users have activated push notifications in the app's settings, false when they have disabled them.

B. Use this attribute in all your campaign's segmentation

Whenever you create a campaign, include this attribute in your targeting.

Segmentation rule for "is_push_optin" set to "is equal to Yes" in Batch dashboard.

Last updated

Was this helpful?