Firefox InvalidRegistration FCM notification notification

I use FCM to send push notifications, my code works fine in Chrome, but I'm struggling with Firefox. I got an answer 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

heading

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 message is a group of devices Cloud Cloud Firebase!",}}

But this code works fine on Android, please give any suggestion. thank

+4
1

Firebase Firefox. Firebase Chrome.

push- - Push API, . , push . , Firefox Mozilla.

:

  • , , API: , ""

UPDATE: Firebase Firefox. Chrome, Firebase . Firefox, Firebase push (, Pushpad, OneSignal ..) Mozilla, Firefox.

+3

Source: https://habr.com/ru/post/1662034/


All Articles