Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Latest commit

 

History

History
86 lines (52 loc) · 3.95 KB

File metadata and controls

86 lines (52 loc) · 3.95 KB

Troubleshooting in-app messaging

This information helps you troubleshoot in-app messaging.

If you completed all the requirements for In-App Messaging, but messages do not display, check the following items:

Are you putting the new configuration and new SDK in the app?

Verify that the SDK is version 4.2 or higher and correctly configured. Ensure that you have a Messages section in your configuration (downloaded JSON file), or have a Messages remote endpoint, so that it can be retrieved from dynamic tag management.

My full screen message in Android is not showing up. I am using the correct SDK, configuration, and my triggers are being met.

Did you update your manifest file to define the full screen activity?

My local notification message in Android isn't working.

Ensure that the local notification broadcast receiver is declared in your manifest. For more information, see step 2 in Enabling In-App Messages.

Is the message live?

Check on the list view on the Manage In-App Message page in the Status column, and verify if it is live.

Look at show once, show always, show offline settings on the Audience tab.

Verify that these settings are set the way you want. On the Audience tab, review your Trigger options, which allow you to specify how often the message is shown.

If using launch event as trigger...

Launch only fires on a new session. For more information about when a session begins, see the lifecycleTimeout row in the JSON Config file. For more information, see ADBMobile JSON Config.

I updated my message remotely but my app is still showing the old message.

Complete one of the following tasks:

  • Dynamic tag management can take a few minutes to update its endpoint with your new definition.

    Wait for some time and try again.

  • The config will only update on a new launch. If the app was restarted during the life cycle session timeout, your new config might not have been downloaded.

    For more information, see Lifecycle Metrics.

My image does not fit exactly into the space provided by the template.

The In-App Message full-screen template supports displaying an image from a remote server (Image URL) or from the app bundle (Bundled Image). The image should be in a standard image format, such as JPG, GIF or PNG.

Because device screens have many different dimensions, the image will most likely not fit exactly into the space provided by the template. The template focuses on showing the center of the image and, if the image does not fit, crops (portrait) or fades (landscape) the sides.

Here is the exact placement and sizing rules for each orientation:

  • Portrait:

    • A height of 195px for phones
    • A height of 529px for tablets
    • Centered if the image width is smaller than the device width.
    • Cropped if the image width is greater than the device width.
  • Landscape:

    • The image scaled to 100% of the height of the device.
    • The width is 75% of the device, with a fade out on the right.

If you have issues with the full-screen template, you can download and use the Custom HTML template. This template provides more flexibility for images and allows full control of the template.

In-app messages on an iPhone X do not display in full screen mode.

To display in-app messages in full-screen mode on an iPhone X:

  1. Add viewport-fit=cover in the meta tag.

    <meta name="viewport" content="viewport-fit=cover">
  2. Set up appropriate padding in the CSS for the top UI element such as:

     topelement {
       padding-top:20px;
       /*Status bar height on iOS 11.0*/
       padding-top:constant(safe-area-inset-top);
       /*Status bar height on iOS 11+ */
       padding-top:env(safe-area-inset-top);
       } 

    These settings prevent the UI elements from colliding with the status bar.