Skip to content

Example application using chrome service workers to manage push notifications in any platform

Notifications You must be signed in to change notification settings

jfcorugedo/chrome-push-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push Notifications

This is a sample application coded following this excellent tutorial: Push Notifications codelab.

This app has to do with Service Workers, Google Cloud Messaging (GCM) and push notifications

Send GCM notifications using cURL

Just type this command on your terminal window:

curl --header "Authorization: key=<YOUR_GOOGLE_API_KEY>" --header "Content-Type: application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"<YOUR_REGISTRATION_ID>\"]}"

You can find your google API key inside Credentials section in your Google Developers Console.

On the other hand, you can find YOUR_REGISTRATION_ID once your application performed a successfully subscription to Google Cloud Messaging.

About

Example application using chrome service workers to manage push notifications in any platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published