GCM不同的发件人ID与mismatchsender ID错误 [英] GCM different sender id with mismatchsender id error

查看:201
本文介绍了GCM不同的发件人ID与mismatchsender ID错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用两个不同的应用两种不同者编号。当我发送消息的第一个应用到第二个应用是成功的,但是当我第二次发送到应用程序第一次我得到:


  

{\"multicast_id\":8546528660791862014,\"success\":0,\"failure\":1,\"canonical_ids\":0,\"results\":[{\"error\":\"MismatchSenderId\"}]}



解决方案

我用同样的发件人ID为两个应用它们也有不同的包名。不需要创建不同的发件人ID为不同application.Also使用相同的API密钥服务器端

I used two different sender ids with two different applications. When I send message first app to second app it is successful, but when I send second app to first I get :

{"multicast_id":8546528660791862014,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}

解决方案

I have used same sender id for both two application they have also different package name. Not required to create different sender id for different application.Also used same api key for server side

这篇关于GCM不同的发件人ID与mismatchsender ID错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆