Webpush config in notification payload

72 views
Skip to first unread message

Jyra Nevmerzhitsky

unread,
Sep 23, 2024, 10:12:58 AM9/23/24
to Firebase Google Group

According to the documentation (https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages), in a Firebase push notification payload, I can have a webpush object with some settings.  

I have set up Firebase as described here - https://firebase.google.com/docs/cloud-messaging/js/receive. But according to the documentation (https://firebase.google.com/docs/reference/js/messaging_.notificationpayload), the onMessage function will receive only the base template notification payload. How can I receive the webpush config?
P.S. I'm sending webpush in the payload from the server side.

Reply all
Reply to author
Forward
0 new messages