Add a Thumbnail to Your App Inbox

Use custom keys to customize the way your app displays inbox messages. By using custom keys, your app can display message-specific information.

Your application can access an image URL to add a thumbnail image to your message list.

  1. Create a custom key named inboxThumbnail. See Salesforce Help: MobilePush Custom Keys.

  2. Create an inbox message targeted for your application. See Salesforce Help: Create and Send an Inbox Message.

    When you configure the message, set the custom key inboxThumbnail to a valid https URL. For example, https://example.com/image.jpg.

  3. To access the custom key sent in a message in your app’s inbox, use these code examples. This example is based on the sample code in our Android LearningApp and iOS LearningApp projects.

To access the custom key in an Android app, use this code example.

To access the custom key in an iOS app, use this code example.