Last active
February 20, 2021 11:48
-
-
Save Emeka-Chukwu/ead3f1d14f9bf05fc682d2bb22196e23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to send dynamic push notification to selected devices