android - Firebase Cloud Messaging notification with curl getting MismatchSenderId -


i'm developing android apps firebase(ver.9.4.0).

when sent fcm notifications using tokens shown below, devices couldn't notification.

curl --header "authorization: key=aizaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \   --header content-type:"application/json" \   https://fcm.googleapis.com/fcm/send \   -d "{ \"data\": {\"url\":\"http://xxxxxxxxxxxxxxxxx\",\"type\":\"0\"}, \"priority\":\"high\",\"notification\": {\"body\": \"title\"}, \"registration_ids\":[\"apa91bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"]}" 

error message:

{"multicast_id":5831565775247505735,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"mismatchsenderid"}]} 

the tokens couldn't send start apa91b.

the tokens send start xxxxxxxxxxx:apa91b.

try refresh token database. because when uninstall app or clear data token gets changed.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -