In-App Messaging

In formation to help you use in-app messaging in your iOS apps.

Requires SDK version 4.2 or later

Messages and the rules that define when messages are displayed are created in Adobe Mobile services. See Create an in-app message.

The updates described in this section must be made to the SDK to display in-app messages. You can complete these steps even if you do not have any messages defined yet. After you define messages, they will be delivered dynamically to your app and displayed without an app store update.

This section contains the following information:

How to Enable

Prerequisites: Add the library to your project and implement lifecycle.

  1. Import the library:
    #import "ADBMobile.h"
  2. Verify that ADBMobileConfig.json contains the required settings for In-App messaging. Either messages or remotes is required. In order for in-app messages to be updated dynamically on launch, the remotes object must be present and properly configured:
    “messages”: [
            “messageId”: “de45c43c-37bf-441f-8cbd-cc3ba3469ebe”,
            “template”: “fullscreen”,
            “showOffline”: false,
            “showRule”: “always”,
            “endDate”: 2524730400,
            “startDate”: 0,
            “audiences”: [],
            “triggers”: [],
            “payload”: {	// contents change depending on template
                “html”: “<html>html code goes here</html>”
    “remotes” : {
        “analytics.poi”: “…/yourfile.json”,
        “messages”: “…/yourfile.json”

    If these are not configured, download an updated ADBMobileConfig.json from Adobe Mobile services.

Local Fallback Image

When creating a full screen message in Adobe Mobile services, you can optionally specify a fallback image. In the case that your message is unable to retrieve its intended image from the web, the SDK attempts to load the image with the same name from your application bundle. This allows you to show your message in its original form even if the user is offline or the predetermined image is unreachable.

The fallback image asset name is specified when configuring the message in Adobe Mobile services, you need to ensure the specified resource is available.

Parent topic: Messaging