我想通过使用GCM推送通知,所有事情都做得很好,就像API密钥&别人。
I got success &也收到了通知,但在发送了几个通知后,我现在没有收到任何通知&出现以下错误
{"multicast_id":7413445345804388431,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}
please help for this, thanks in advance
error":"MismatchSenderId
它说你从另一个发送者id发送推送通知,而不是从你注册的发送id。请正确检查您的发件人id。
仔细检查Sender ID
和APK_KEY
,它们必须匹配,否则你会得到MismatchSenderId错误。在Google API Console中,查看项目的URL:
参考此链接https://stackoverflow.com/a/11316399/964741