Skip to content

Instantly share code, notes, and snippets.

@Emeka-Chukwu
Last active February 20, 2021 11:48
Show Gist options
  • Save Emeka-Chukwu/ead3f1d14f9bf05fc682d2bb22196e23 to your computer and use it in GitHub Desktop.
Save Emeka-Chukwu/ead3f1d14f9bf05fc682d2bb22196e23 to your computer and use it in GitHub Desktop.
{
"registration_ids":["cT2T7lRNTYmXNM-TOD1xJx:APA91bG_Hxqrqrp1byQ2-RkAfqRtz0ddziuRIhPVqYfh5lEDUnVJc1Vmlau588XGwNvnGS8B0MTzmLgbMz6s42pm27wsNLEFdV1Kt-JqA47h2V3uFo31n0eIB5k5WQhlgnHcCkijL5vG","dbXvnvsAQk-mN2Qmqgvji8:APA91bEsnGQnl1vJvhFJEjtAwV5y4shddde7Fj_8_UtLO2YlUqFLVD3fs6JiFyCfU87t0u41vnz4p9cpj-LUKcM_8s7jZjuSrcBoYTBrcLwKsO5kOBqPhlX5bJGr5FwgbTz50DR-4Rmz"],
"notification" : {
"sound" : "default",
"body" : "test body",
"title" : "test title",
"content_available" : true,
"priority" : "high",
},
"data" : {
"sound" : "default",
"body" : "test body",
"title" : "test title",
"content_available" : true,
"priority" : "high"
}
}
var api_url = "https://fcm.googleapis.com/fcm/send";
header:{"Authorization": "key=server_key"}
//run a post method on this and pass the payload to the request
@Emeka-Chukwu
Copy link
Author

how to send dynamic push notification to selected devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment