I've successfully integrated the PushPlugin for receiving push notifications on iOS and Android (https://github.com/phonegap-build/PushPlugin). My problem is that, after I update my app with a new build (without uninstalling and reinstalling), push notifications stop working. I have to manually start the app before they start working again. Is there a way to keep the GCMBroadcastReceiver running through the update?
Push notifications are correctly received and displayed in all of these scenarios:
- App is running in background
- App has been stopped from the task manager
- Phone restarted and app is not running
- Phone restarted and app is running in background
Push notifications are not received, as expected, in these scenarios:
- App is running in foreground (don't want to lose current place in app)
- App has been force-quit (see https://stackoverflow.com/a/20838611/2782404)
- Phone restarted and app is running in foreground