-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Add support for click_action #73
Comments
You could steal what they have in the cordova-plugin-firebase |
Any updates of this? |
I am also looking for the same functionality. Any updates on this? |
@chemerisuk Any updates on this? |
I am not sure if i understood you right but using the onBackgroundMessage should be what you are looking for. This is called, when the user clicks on the notification and the app opens. |
But it does not fire any callback event when click on the head up notification on android |
It should. It does fire onBackgroundMessage callback in my code. If nothing happens after the notification being clicked. One possible reason is you have click_action in your fcm notification payload but doesn't have corresponding intent filter setup in your manifest.xml |
For those that haven't used Intent filters before (like me) It was a little confusing trying to get it to work but after some trial and error I managed to get it working with this code. Inside config.xml within the android platform tags:
This is what my cloud function looks like: |
The action associated with a user click on the notification.
https://developer.apple.com/documentation/usernotifications/declaring_your_actionable_notification_types?language=objc
https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/SupportingNotificationsinYourApp.html#//apple_ref/doc/uid/TP40008194-CH4-SW26
The text was updated successfully, but these errors were encountered: