Android GCM无法接收消息
大家好,我正在创建一个项目,我是谷歌云消息的新手,我正在使用eclipse学习androidhive的GCM教程。设置了API密钥和发送方ID。我成功地获得了regId并将其插入到我的服务器端。现在的问题是,从我的服务器接收到我的应用程序的消息不会出现Android GCM无法接收消息,android,google-cloud-messaging,Android,Google Cloud Messaging,大家好,我正在创建一个项目,我是谷歌云消息的新手,我正在使用eclipse学习androidhive的GCM教程。设置了API密钥和发送方ID。我成功地获得了regId并将其插入到我的服务器端。现在的问题是,从我的服务器接收到我的应用程序的消息不会出现 {"multicast_id":6802394882982391839,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]} 我将
{"multicast_id":6802394882982391839,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}
我将发件人id放入
设置此权限
<permission
android:name="com.jeffedward.pushnotifications.permission.C2D_MESSAGE"
android:protectionLevel="signature"/>
在你的代码中。
添加元数据
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<!-- Register Activity -->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
</application>
设置此权限
<permission
android:name="com.jeffedward.pushnotifications.permission.C2D_MESSAGE"
android:protectionLevel="signature"/>
在你的代码中。
添加元数据
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<!-- Register Activity -->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
</application>
@integer/google\u play\u services\u版本有点过时missing@integer/google_play_services_版本有些缺失