curl --header "Authorization: key=blahblahblah" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"blahblahblah\"]}"
Currently i am able to send push notification though the command above. In order to send the notification to user, i need to get the registration id from user. What if I want to push notification to everyone (who subscribed to that notification)? And how I get their registration ID?
*Note: what I want is: push a notification to everyone when my something in the website updated.
Link to my project: Github
I learnt push notification + sw from here: Google Developer