Skip to content

jacopocappelli1989/angular-phonegap-push-notification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AngularJS Phonegap Push Notifications

Usage

  1. Made sure the phonegap.js script is in your .html file.
  2. Replace {your_sender_id} with your GCM sender id
  3. Include the push.js script, and this script's dependencies are included in your app.
  4. Add phonegap as a module dependency to your app.

Example

push.registerPush(function (result) {
    if (result.type === 'registration') {
        console.log("PUSh Registrazione device_id:"+result.id+" Device:"+result.device);
    }else{
        console.log("PUSH errore");
    }
});

License

MIT

About

AngularJS module for Android and iOS push notification services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%