Skip to content

Instantly share code, notes, and snippets.

@Klerith
Created March 8, 2023 20:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Klerith/9c80c0dedc1341e24173628ebf0f0aaf to your computer and use it in GitHub Desktop.
Save Klerith/9c80c0dedc1341e24173628ebf0f0aaf to your computer and use it in GitHub Desktop.
FCM - No recomendado - Envío de Push

Configuración

Metod: POST URL: https://fcm.googleapis.com/fcm/send

Body:

{
 "to" : "Token del cliente",
 "notification" : {
     "body" : "Body of Your Notification",
     "title": "Title of Your Notification"
 },
 "data" : {
     "body" : "Body of Your Notification in Data",
     "title": "Title of Your Notification in Title",
     "key_1" : "Value for key_1",
     "key_2" : "Value for key_2"
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment