Skip to content

Commit 3c5c408

Browse files
authored
chore(messaging): Fix documentation for localized messages (#12709)
1 parent 8f1346e commit 3c5c408

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docs/cloud-messaging/receive.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,11 @@ Here's how to use the second method:
376376
377377
```json
378378
{
379-
"data": {
380-
"title_loc_key": "notification_title",
381-
"body_loc_key": "notification_message"
379+
"android": {
380+
"notification": {
381+
"title_loc_key": "notification_title",
382+
"body_loc_key": "notification_message"
383+
}
382384
}
383385
}
384386
```
@@ -403,9 +405,13 @@ Here's how to use the second method:
403405
404406
```json
405407
{
406-
"data": {
407-
"title_loc_key": "NOTIFICATION_TITLE",
408-
"body_loc_key": "NOTIFICATION_MESSAGE"
408+
"apns": {
409+
"payload": {
410+
"alert": {
411+
"title-loc-key": "NOTIFICATION_TITLE",
412+
"loc-key": "NOTIFICATION_MESSAGE"
413+
}
414+
}
409415
}
410416
}
411417
```

0 commit comments

Comments
 (0)