Search code examples
androidcordovaionic-frameworkphonegap-pushplugin

how to install phonegap "push plugin" in ionic project(android)?


I am new to ionic framework, I am working on push notification in my android ionic project using phone gap push plugin referring the following documentation phonegap push plugin link

But I am unable to find how it gets worked. I need to send notifications to all the devices who already install as a gesture of revisit of my app. Can any one give clear description step by step to solve this ?


Solution

  • Install plugin from http://ngcordova.com/docs/plugins/pushNotifications/ create one project on google Api console (https://console.developers.google.com/ ).

    There is method of Registration where you will get $cordovaPush.register(androidConfig).then(function(result) {console.log(result);

    you will get device token. Register that device token and save that token on created project from Google API.