Firebase + appel pour envoi de notification
Bonjour,
Lorsqu'un utilisateur reçoit une notification spéciale, je veux déclencher l'envoi d'une demande d'envoi :oops: de notification au serveur Firebase.
J'ai trouvé cet élément de réponse sur Stackoverflow:
Code:
1 2 3 4
| curl -X POST --header "Authorization: key=<API_ACCESS_KEY>" \
--Header "Content-Type: application/json" \
<a href="https://fcm.googleapis.com/fcm/send" target="_blank">https://fcm.googleapis.com/fcm/send</a> \
-d "{\"to\":\"<YOUR_DEVICE_ID_TOKEN>\",\"notification\":{\"body\":\"Yellow\"},\"priority\":10}" |
Mais je coince sur "<YOUR_DEVICE_ID_TOKEN>" ...
devrais je renseigner l'ID du smartphone émetteur ou récepteur ?
merci à vous,