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.
-
Create a custom key named
inboxThumbnail. See Salesforce Help: MobilePush Custom Keys. -
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
inboxThumbnailto a validhttpsURL. For example,https://example.com/image.jpg. -
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.
- Inbox Messaging
- Custom Keys
- Github: Android LearningApp
- Github: iOS LearningApp