Documentation in FCM focuses heavily on Android/iOS and my lowly webpush
self is struggling with click_action
.
click_action
was a
You can include whatever key=>value pairs you want within the data field of your Web Push payload.
Register a notificationclick event listener in your service worker and these data values are available within the event triggered when your notification is clicked. Access your data, then execute your desired click action.