Push template - multi icon
Notification that displays three to five (3-5) image buttons with no text. Each button contains a URI to follow if the user interacts with it.
The table below shows all available properties in the respective payload for FCM (Android).
FCM
fcm
Properties
The properties below define the payload sent to FCM:
adb_versionadb_template_typeadb_soundassets/raw directory of your app.adb_uriadb_a_typeadb_uri - one of "WEBURL", "DEEPLINK", "DISMISS", or "OPENAPP".<br />Required if adb_uri is specified.adb_channel_idadb_n_countadb_n_priorityadb_tagadb_tickeradb_clr_bg00FF00.adb_cancel_imageadb_itemsimg (required) - URI or bundled image representing this rating.</li><li>uri (required) - URI to be handled when the user clicks this rating.</li><li>type (required) - Type of link represented in uri - one of "WEBURL", "DEEPLINK", "DISMISS", or "OPENAPP".</li></ul>Example
Below is a sample of what a payload might look like for a multi icon notification:
{
"message": {
"token": "FCM_TOKEN",
"android": {
"collapse_key": "new message"
},
"data": {
"adb_version": "1",
"adb_template_type": "icon",
"adb_clr_icon": "123456",
"adb_clr_bg": "000000",
"adb_cancel_image": "delete",
"adb_items": "[{\"img\":\"https://sneakerland.com/products/assets/shoe1.png\",\"uri\":\"myapp://chooseShoeType/shoe1\",\"type\":\"DEEPLINK\"},{\"img\":\"https://sneakerland.com/products/assets/shoe2.png\",\"uri\":\"myapp://chooseShoeType/shoe2\",\"type\":\"DEEPLINK\"},{\"img\":\"https://sneakerland.com/products/assets/shoe3.png\",\"uri\":\"myapp://chooseShoeType/shoe3\",\"type\":\"DEEPLINK\"},{\"img\":\"https://sneakerland.com/products/assets/shoe4.png\",\"uri\":\"myapp://chooseShoeType/shoe4\",\"type\":\"DEEPLINK\"},{\"img\":\"https://sneakerland.com/products/assets/shoe5.png\",\"uri\":\"myapp://chooseShoeType/shoe5\",\"type\":\"DEEPLINK\"}]"
}
}
}
Usage recommendations
The tables below contain guidelines for your push notification content. These recommendations help your images display reliably across multiple devices. These values are guidelines only - you should still test a notification prior to sending it.
Audio specifications
Custom sound files must be placed within the app's bundle in the res/raw directory. Supported formats are mp3, wav, or ogg.