I am using FCM to Send Push notification,my code work fine on Chrome, but I'm struggling on Firefox. I got response like this
{"multicast_id":8241088978207626504,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]} 0 .
my full API request shown below
https://fcm.googleapis.com/fcm/send
header
TTL: 60
User-Agent: Fiddler
Host: fcm.googleapis.com
Authorization: key=aBCABC-aBCABC
Content-Type: application/json
Content-Length: 250
body
{ "to": "gAAAAABYObKnhmk29O7z_ZeLomoG_7CwG6ZNUZpMz5SxB8XPizuUtNKYLyPMrMB7nR-IQo83L51DWvzAAqIau5c0LEWRE0CiwWO78Dn6JPwrVGqBqfZFJnHT1HuboZb9OrTdPknEXYvc", "data": { "hello": "This is a Firebase Cloud Messaging Device Group Message!", } }
But this code work fine on Android, please give any suggestion. Thanks