Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 4f7dd83

Browse files
CURL needs the Legacy server key, it seems
1 parent 8061544 commit 4f7dd83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/MESSAGING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ Using the Firebase Console gives you most flexibility, but you can quickly and e
165165
curl -X POST --header "Authorization: key=SERVER_KEY" --Header "Content-Type: application/json" https://fcm.googleapis.com/fcm/send -d "{\"notification\":{\"title\": \"My title\", \"text\": \"My text\", \"badge\": \"1\", \"sound\": \"default\"}, \"data\":{\"foo\":\"bar\"}, \"priority\": \"High\", \"to\": \"DEVICE_TOKEN\"}"
166166
```
167167

168-
* SERVER_KEY: see below
169-
* DEVICE_TOKEN: the one you got in `addOnPushTokenReceivedCallback` or `init`'s `onPushTokenReceivedCallback`
168+
* SERVER_KEY: see the image below (make sure to use the 'Legacy' server key).
169+
* DEVICE_TOKEN: the one you got in `addOnPushTokenReceivedCallback` or `init`'s `onPushTokenReceivedCallback`.
170170

171171
Examples:
172172

0 commit comments

Comments
 (0)