You've got mail. - Elwood Edwards
This package is made as a simple demo of the tomasdepomas:notifier package. This demo runs version 0.8.1 of the package.
The manifest and service worker file have already been added to the correct location.
- Get your API key and project number for the GCM service ( how to get this is explained here )
- Add the API key to the
/server/main.js
file on line 10 - Add your project number to the
public/notification-manifest.json
file on line 2 - Run the application with the
meteor
command
The files that are interesting to have a look at:
- server/main.js - shows how to set the API key
- public/ - this entire folder shows where the manifest and service worker should be located
- client/main.js - shows how to start the required processes and send a message to the current user
- client/main.html - shows how to include the notifier UI elements to your application