You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/AndroidCustomization.md
+53-1Lines changed: 53 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,8 +77,10 @@ There are also some keys you can set on the payload:
77
77
***priority** : Sets the notification priority
78
78
***sound** : Sets the notification sound
79
79
***icon** : Sets the notification icon
80
-
***click_action** : Sets name for notification action
80
+
***large_icon** : Sets the notification large icon
81
+
***click_action** : Sets name for the notification action
81
82
***channel_id** : Sets id for the notification channel that will be used when notification is delivered
83
+
***show_when** : Indicates if the notification timestamp will be shown.
82
84
83
85
If **sound** or **icon** keys present have priority over the **FirebasePushNotificationManager.SoundUri** and **FirebasePushNotificationManager.IconResource** static customization properties mentioned above.
84
86
@@ -215,6 +217,39 @@ Payload sample with icon and sound
215
217
216
218
If icon not set will set the **FirebasePushNotificationManager.IconResource** value if not set either will use the default application icon.
217
219
220
+
##### Notification Large Icon
221
+
222
+
* You can send the large_icon to be displayed on the notification by using **large_icon** key, an icon with the value set should be in your *Resources/drawable* folder.
223
+
224
+
Payload sample with large icon
225
+
226
+
```json
227
+
{
228
+
"data" : {
229
+
"title": "hello",
230
+
"body": "world",
231
+
"priority":"high",
232
+
"large_icon":"test"
233
+
}
234
+
}
235
+
```
236
+
237
+
Payload sample with large icon and sound
238
+
239
+
```json
240
+
{
241
+
"data" : {
242
+
"title": "hello",
243
+
"body": "world",
244
+
"priority":"high",
245
+
"large_icon":"test",
246
+
"sound":"test"
247
+
}
248
+
}
249
+
```
250
+
251
+
If large icon not set will set the **FirebasePushNotificationManager.LargeIconResource** value.
252
+
218
253
##### Notification Actions
219
254
220
255
* For notification with actions will look for **click_action** key value as the match. More information here: [Notification Actions](NotificationActions.md)
@@ -236,5 +271,22 @@ If icon not set will set the **FirebasePushNotificationManager.IconResource** va
236
271
}
237
272
```
238
273
274
+
##### Notification Show When
275
+
276
+
***show_when** key if set to false will not show the notification timestamp, otherwise will show it
0 commit comments