Edit in GitHubLog an issue

Display an in-message on push notification interaction

Overview

This document describes the steps that allow a designated in-app message to be shown to an end user when they interact with a push notification to open the app.

Pre-requisites

Integrate and register Messaging extension in your app.

Add a trigger in the in-app message campaign

  1. In the Journey Optimizer UI, select the Campaign for the in-app message that needs to be shown when a push notification is interacted with.
  2. Under the Triggers section, click on the Edit triggers button. Click on Add Condition and select the Manual trigger from the event dropdown. Click on Add Condition again and select Custom trait from the trait menu. Enter adb_iam_id as the key for the custom trait and an ID that uniquely identifies the in-app message as the value. Make a note of this ID as it will be used in the next section.

In-app campaign trigger for Push-to-inapp

  1. Click on Done to save the rule and review the changes by clicking on Review to activate

  2. Click on Request approval to activate the campaign.

Add the in-app message ID to the push notification data

  1. In the Journey Optimizer UI, select the Campaign for the Push notification which opens the app and shows the in-app message from the previous step.
  2. Click Edit content to modify the push notification payload. Under Custom data section, click on Add Key/Value Pair. Enter adb_iam_id in the key field and the unique in-app message ID from the previous section in the value field.

Push campaign custom data for Push-to-inapp

  1. Click on Review to activate to save the changes.

  2. Click on Request approval to activate the campaign.

Track push notification interaction

After the application is opened by the user by clicking on the push notification, verify push notification interaction is being tracked using handleNotificationResponse API in the delegate implementing UNUserNotificationCenterDelegate.

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.