On iOS, you can use Batch In-App messages to suggest again to your opt-out users to activate push notifications. This type of In-App campaign allows you to feed the opt-in database and to have an additional lever to bring these users back into the app.

This In-App message can be displayed to a specific segment of users and triggered when the app is opened or on a specific action (e.g. reading an article, adding to a basket, confirming an order, etc.).

A/ Pre-requisites

Here is the list of prerequisites for setting up your opt-in campaigns:

1. SDK version:

Use an SDK version equivalent to 1.12 or higher.

2. Tagging plan:

  • Inform Batch about to the opt-in state: if this is not the case, you will have to think about going back to a Boolean attribute (e.g. true or false) which could be called "is_optin_push". This attribute should be sent each time the app is started. It will be necessary to retrieve the response from the Apple API as documented here to determine the value to go up.
  • [Optional] Plan trigger actions: if you want to display the In-App message other than when the app is opened, you will need to plan trigger action with an iOS or Cordova event.

B/ Campaign creation

You will need to create an In-App campaign using the following instructions:

1. Targeting

2. Trigger conditions

  • Display event: new session triggers the display of the In-App when the app is opened. You can also put a specific action previously tagged.
  • Capping: we have set a capping of 2 in this example and a 72 hours grace period. A user will see the In-App message 2 times maximum, with a delay of 3 days minimum.

3. Message edition

You have to select an In-App theme in the drop down menu. If you do not have a theme yet, you should create one from: Settings > Theme > New theme.

Then, add your wording and an image according to your theme.

When configuring the buttons, choose "custom" from the drop-down menu then use the following parameters:

  • action name: batch.ios_smart_reoptin
  • valid json: {}

4. Send a test on your device

Discover how to do it through our detailed guide here for iOS and Android.

To test this specific re-opt-in campaign, follow those instructions:

  • open the test push —the In-App is displayed on the screen
  • go to the settings of your phone (without killing your app) —> disable the push notifications
  • go back to your app and click on 'activate notifications' button —> you will be direct to the app settings

Your campaign is now ready to activate.

Note: nothing happens if a user clicks on the button with the above configuration if he is already opt-in to push.

C/ Use cases

Here you have examples of two « re-opt-in » campaigns with two different In-App format:

Good practices:

  • target only opted-out users ;
  • use a 100% automated In-App format ;
  • displayed 3 times with a 48 hours grace period ;
  • displayed after a specific user action or for a new user session.
Did this answer your question?