dimanche 16 mai 2021

payload format FCM push notification web

I am Currently using the below format to send push notification to the client side using API.

{
 "notification": {
 "title": "Hey There", 
 "body": "Welcome to Site",
 "web_link": "https://google.com"
 },
  "fcm_options": {
   "link":"https://www.google.com"
  },
 "to" : "eJW_5V9f5PPK48Ta1vDS8V:APA91bETTwu2UYTzSwjlaXEjv-p4nl61S-xgZIL3hWn9s6HWUR4fghtxctA0nb4dwxkRTJ5EXveCTwDsq4EviuZrxkFQHHJtovR7LeaTfTsbpYtpOdidEWNroTKMfbwG3xV0gJBlUpe"  
}

The notification is send however the link is not getting opened on the browser while it is clicked when the notification is shown on the background. I have tried multiple formats but none of seems to be working.




Aucun commentaire:

Enregistrer un commentaire