We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
FCM API v1 has not click_action in notification. https://firebase.google.com/docs/cloud-messaging/send-message
click_action
notification
SDK lib prevents other listeners from receiving the click event. I can not use a listener for notificationclick in SW. https://github.com/firebase/firebase-js-sdk/blob/master/packages/messaging/src/controllers/sw-controller.ts#L155
notificationclick
How to handle properly click event?
Curl for send message using FCM API v1...
curl -X POST -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d '{ "message":{ "token": "???", "data": { "badge": "images/badge.png", "icon": "images/icon.png", "image": "images/image.png" }, "webpush": { "headers": { "TTL": "3600", "Urgency": "high" } }, "android": { "priority": "high", "ttl": "3600s" }, "notification": { "title": "TEST", "body": "BODY" } } }' "https://fcm.googleapis.com/v1/projects/$PROJECT_ID/messages:send"
The text was updated successfully, but these errors were encountered:
@JosefJezek right, we can't listener for notificationclick at SW. The solution from #102 (comment) sound good but not work for me...
Thanks for the help!
Sorry, something went wrong.
click_action is supported in the web push notification payload.
Using link in fcmOptions is preferred: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushfcmoptions
link
fcmOptions
mmermerkaya
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
FCM API v1 has not
click_action
innotification
.https://firebase.google.com/docs/cloud-messaging/send-message
SDK lib prevents other listeners from receiving the click event. I can not use a listener for
notificationclick
in SW.https://github.com/firebase/firebase-js-sdk/blob/master/packages/messaging/src/controllers/sw-controller.ts#L155
How to handle properly click event?
Curl for send message using FCM API v1...
The text was updated successfully, but these errors were encountered: