I've been looking for a push notification solution for PhoneGap and came across the one from — It's a great plugin that works well, but it's integrated with PushWoosh and since they close off their remote API to non-paying customers, I decided to make a solution of my own.
This plugin implements PhoneGap's PushPlugin code to retrieve device tokens. There are only two actions -- register and unregister. Register will register your device using whatever service is appropriate for your operating system and unregister will unregister you. Registering will return a device token which you can access though the DeviceToken object. There are five triggers -- an OnSuccess and OnFailure for both registering and unregistering as well as OnDeviceTokenUpdated, which will trigger when a device token is received.
This plugin works with PhonegapCLI at the very least. Not sure about anything else. Here are some instructions about how to integrate the plugin to your project:
Manual Installation
Automatic Installation
Since PushWoosh takes care of all the backend stuff like interfacing with the push notification services from Apple and Google, with this plugin, you'll have to find a server side solution that works given a device token.
This code has been tested and confirmed working on Android systems, but I don't have the hardware to test it on iOS yet, which is why I'm posting it here. Can anyone help me confirm that the device token is being received and can be read?