Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving Background Pus Notification #83

Open
virtualprodigy opened this issue Sep 21, 2016 · 1 comment
Open

Receiving Background Pus Notification #83

virtualprodigy opened this issue Sep 21, 2016 · 1 comment

Comments

@virtualprodigy
Copy link

Currently this plugin doesn't provide any means for the code to handle a push notification that was received in the background. If someone get's a push notification while the app is in the background the event handlers are never code which prevents my application from properly handling this situation.
It seems like this was address by the official Cordova plugin last year, phonegap/phonegap-plugin-push#109.

Is there any plans to add this functionality or should I switch over to Cordova's plugin?

@jkurban
Copy link

jkurban commented Oct 5, 2016

The post is iOS related only... I was able to get notifications to process but only if you click on the notification, or click on the notification center notification, with the app in the background. However, if you simply bring the app back from the background, the notification does not process. I am also able to process the notification if the notification is received while the app is off, once I launch the app, I am able to get the notifications.

So it seems we just need the notification to get pulled from iOS when then the app wakes up(resumes)... or we need a way to call the notification handler and process the notification via the resume event listener. I can see the resume get called AFTER the notification is handled under my successful tests above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants