Is there a push notification plugin/approach for phonegap (android/iphone) where:
- the application can still be built using phonegap build.
- the push notification can be received even when the application is not running (in the foreground)
I am trying HARD not do manage separate Android (Java) and iPhone (Xcode) projects.
If not, what would be the easiest way to implement this for BOTH android & iphone? Urban Airship looks very close to doing this (not sure if can be built via phonegap build though).
Currently what you describe here is not yet available with phonegap build. You need to use cordova (=phonegap) plugins for that and currently only one plugin is supported by phonegap build (see Supported plugins ).
If you want something quickly you’ll have to do with your own custom builds. Have a look at this repository of plugins. You’ll see two Push plugins: PushNotification and UAPushNotification they seem to be both using Urban Airship integration.
To reply to your second question, it does look like the push notifications are only visible once your application starts, not when it’s stopped.