-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Notification not fired when device is locked or app in background #635
Comments
This answer helped me to solve the issue - #17 (comment) I had to set 'content-available' => 1 property for iOS push notification object, as stated here - https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH4-SW57 This keys forces app to watch for this notification in background mode. |
@IgorUsoltsev did you set 'content-available' inside your PushNotification.LocationNotification({ "content-available" : 1}}? |
Here's my code and setup: Have got this code in my PushNotification.js file.
And when using, I use like so:
I also have in my
I get notifications when app is in background but not when device is locked or not active. I'm probably missing something.. |
@bwoodlt I send them from my backend server. But I guess this could work from local notification as well. As for your locked/not active device - I didn't meet this issue as I use APN/GCM to send messages. And they come as generic push notifications that you can open anytime and launch app. |
change your 'active' to 'backgroud' |
@bwoodlt How did you solve this issue? |
I had the same issue because the 'Do Not Disturb' feature on my iPhone was turned on. When turning that off it worked again. |
i also getting same issue, can any one help me out |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
Hi all,
Have been struggling with this for a few hours. Local push notification not firing when on home screen and when device is locked. This is on iOS.
Anyone been able to solve this issue? Please help a brother.
Thanks all,
The text was updated successfully, but these errors were encountered: