2

I have implemented a push notifications plugin for PhoneGap Build, waited for it for so long

https://build.phonegap.com/blog/introducing-genericpush-plugin

However I'm having issues with the Android app not running in the background. Push notifications are not received when I close the app. Everything is fine when the app is running. Has anyone tried it with Android? Are there any fixes that need to be done?

Thanks!

Mark Nolan
  • 85
  • 4

1 Answers1

1

It's not something related to the GenericPush plugin itself. It's something related to the way Android manages apps. If your user manually closes the app, it means that he doesn't want to receive messages anymore. This is why even the GCM BroadcastReceiver is stopped and the device doesn't receive the notifications.

Here's some useful links:

Community
  • 1
  • 1
Lorenzo S
  • 1,397
  • 13
  • 25