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:
https://github.com/phonegap-build/PushP ... stallation
Since PushWoosh/UrbanAirship 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. Personally, I wrote some PHP which sends the notifications when I need them to.
This code has been tested and confirmed working on Android and iOS