Skip to content

Meteor app demonstrating the richsilv:cordova-notifications package

License

Notifications You must be signed in to change notification settings

caffpain/cordova-notifications-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-notifications-demo

Meteor app demonstrating the richsilv:cordova-notifications package

USAGE

  1. Clone this repo.
  2. Set up a new Google Project, or enable an existing one for the GCM API by following the instructions here.
  3. Update lib/app.js with the SenderID (Project Number) and GCM API Key you generated in step 2.
  4. Plug in an Android device via USB and enable USB debugging.
  5. Start your app with meteor run android-device.
  6. Navigate to localhost:3000 on your dev machine browser.
  7. Set up a user account on either the Android device or the dev machine browser, and log in to the same account on the other (so that you're logged in on both simultaneously).
  8. Now you should be able to send push notifications from the browser to your android device. They will result in either a UI alert (if the application is open in the Android device) or a notifications tray alert (if it's closed). Note that this is still possible if you unplug the Android device and close the app.

About

Meteor app demonstrating the richsilv:cordova-notifications package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.4%
  • HTML 20.6%