Php 未在GCM中接收推送通知

Php 未在GCM中接收推送通知,php,android,push-notification,google-cloud-messaging,Php,Android,Push Notification,Google Cloud Messaging,我正在我的应用程序中使用Gcm服务进行推送通知 我在用这个 注册后,客户端无法接收推送通知 帮助接收来自服务器的推送。您需要检查发件人id和API id。然后必须检查android清单文件,如下所示 <permission android:name="your packagename.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:na

我正在我的应用程序中使用Gcm服务进行推送通知

我在用这个

注册后,客户端无法接收推送通知


帮助接收来自服务器的推送。

您需要检查发件人id和API id。然后必须检查android清单文件,如下所示

<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" />


您是否已从gcm服务器获取设备gcm id?除了上述链接外,您是否可以发送示例应用程序的代码?我也使用了相同的代码。我也有同样的问题,但现在为我工作。。这是id……Apa91bfNiuagxhu6bsyn2sinmevahl5jbkuomsnbkgl5yim0xmok_rstcljqh02rx7e5macykhfmxklahcoqarkomx-YmCfLHiypE1gO23KTYiZ3VdmMYg4jWU4cSBkJ3l7LL3ROlpY lazbjln7dbafo6cxtrha9g5pslzg5pslzg5w6w6l9iacan可以为我建议一个替代解决方案吗?我有同样的问题。。你能分享它的解决方案吗。