-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
[@nativescript/firebase-messaging] How to catch the push notification message on background without tapping the notification? #277
Comments
You need to send a background notification for this to trigger.
If you're using other software on the server side, it also needs to support background pushes. Unfortunately I haven't yet been able to figure out a way to get this to work in the iOS Simulator. |
Thanks a lot! I am having another issue that nativescript is not detecting my physical device but Xcode does. I will test with your code with physical device soon once I figure out! |
Hi, thanks for the info and it worked as expected on ios. But on Android, still not trigger any of .onMessage() or .onMessageTap() when app is on background or killed. Any idea? |
I haven't tried it on Android, so I can't help with that, sorry. But I expect there's a specific way that you have to send the message (like in iOS). Have you tried working through something like this? |
Hi, I am using push notification to sync some data.
On foreground, it automatically trigger .onMessage()
On background, user need to click the notification then trigger .onMessageTap()
What I want to do is even if user ignore the notification, catch the message and sync some data on background.
Is there any way to address this?
The text was updated successfully, but these errors were encountered: