gonzaloaune / GCMPushPlugin

Push notifications for Cordova (GCM & Native support)
MIT License
37 stars 20 forks source link

bulk push notifications #23

Closed Gurudevdatta closed 8 years ago

Gurudevdatta commented 8 years ago

I want to know is there any way to send push notification to multiple devices at a time..in "to" parameter can we able to pass array of the registered device ids.. The curl syntax, curl --header "Authorization: key=SERVER_API_KEY" \ --header Content-Type:"application/json" \ https://gcm-http.googleapis.com/gcm/send \ -d "{ \"data\" : { \"title\" : \"MyCoolApp\", \"text\" : \"MessageText\", \"extra\":{\"url\":\"someurl.js\"}}, \"to\" : \"$DEVICE_TOKEN\" }"

malah-code commented 8 years ago

Also it's not related to the plugin, you can check the details below https://developers.google.com/cloud-messaging/http-server-ref#send-downstream

Gurudevdatta commented 8 years ago

Thanks..that was really helpful.