【发布时间】:2013-04-17 12:24:06
【问题描述】:
【问题讨论】:
-
谁能正确指导我
-
嗨,我也有同样的问题..你能分享一下它的解决方案吗?
标签: php android push-notification google-cloud-messaging
【问题讨论】:
标签: php android push-notification google-cloud-messaging
您需要同时检查 Sender id 和 API id。之后,您必须检查 android Manifest 文件,如下所示
<permission
android:name="your packagename.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="your package name.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<!-- Receives the actual messages. -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<!-- Receives the registration id. -->
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="your package name" />
</intent-filter>
</receiver>
<service android:name="your package name.GCMIntentService" />
【讨论】: