Android GCM send and MismatchSenderId

后端 未结 4 1057
灰色年华
灰色年华 2021-01-23 08:46

The odd thing is that notifications were working before. So I\'m not sure what happened. I tried reinstalling my app to the device, but nothing changed.

{\"multi         


        
4条回答
  •  不思量自难忘°
    2021-01-23 09:34

    curl -X POST \
    -H "Authorization: key= write here api_key" \
    -H "Content-Type: application/json" \
    -d '{"registration_ids": ["write here reg_id generated by gcm"],
    "data": { "message": "Manual push notification from Rajkumar"}, "priority": "high" }' \ https://android.googleapis.com/gcm/send

    MismatchSenderId because with in same device you have logged with different keys. to solve this problem uninstall app and run it againg and update the registration key. and then run the CURL script in your teminal which i post above it will give success message and you will get notification to your device

提交回复
热议问题