You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the firebase messaging to show notifications on my web app. This notifications often come with a link to a page on my app to the user to follow, but, using the onMessage and the onBackgroundMessage methods, the fcm_options doesn't show on the payload. The only way I managed to retrieve the link is by either using my own event listener to get the link, and even then, the link is not where it was supposed to be. I send the property correctly under the webpush.fcm_options.link, but on the browser it appears on notification.click_action, which I assumed was deprecated.
Steps to reproduce:
Just follow the quick guide instructions and the results will be the same
So, there is a way I can retrieve the fcm_options on the default methods? I really don't want to rewrite all the logic that this awesome library does for me out of the box.
The text was updated successfully, but these errors were encountered:
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
I'm using the firebase messaging to show notifications on my web app. This notifications often come with a link to a page on my app to the user to follow, but, using the
onMessage
and theonBackgroundMessage
methods, the fcm_options doesn't show on the payload. The only way I managed to retrieve the link is by either using my own event listener to get the link, and even then, the link is not where it was supposed to be. I send the property correctly under the webpush.fcm_options.link, but on the browser it appears on notification.click_action, which I assumed was deprecated.Steps to reproduce:
Just follow the quick guide instructions and the results will be the same
Relevant Code:
For me to get the the link on the background message, I had to make my own eventhandler on the
notificationclick
eventSo, there is a way I can retrieve the fcm_options on the default methods? I really don't want to rewrite all the logic that this awesome library does for me out of the box.
The text was updated successfully, but these errors were encountered: