问题描述
我使用从的Android蜂巢GCM例如,我已经共享服务器,所以我已经把我的服务器code上
I am using example of GCM from Android Hive GCM example, i have shared server so i have put my server code on that
我的设备已成功注册
也服务器和数据库我收到条目
also in server and in database i am getting entry
在mysql中的项是
在服务器
我得到成功的logcat也
i am getting success logcat is also
11-29 17:55:17.796: V/GCMBaseIntentService(29081): Intent service name: GCMIntentService-572954477211-1
11-29 17:55:17.796: E/GCMRegistrar(29081): internal error: retry receiver class not set yet
11-29 17:55:17.796: V/GCMRegistrar(29081): Registering receiver
11-29 17:55:17.796: D/GCMBaseIntentService(29081): handleRegistration: registrationId = APA91bG5js7Op0v4VQe9Rj_MlXVggCwGZI0KQutCjbBLtu5t07BHguKvWhQiU6JauTOvF9Ilzn9-_cbXuTg0HxUg9dL7FNIZvlt1zB6LIFHlBZ8mi-ebRyo9KZTO1XpcLzLBKQLSHyCTsBUSeuO2tlJY9Tm3o9zphA, error = null, unregistered = null
11-29 17:55:17.796: D/GCMRegistrar(29081): resetting backoff for com.igeniusdev.gcmexample
11-29 17:55:17.846: V/GCMRegistrar(29081): Saving regId on app version 1
11-29 17:55:17.886: I/GCMIntentService(29081): Device registered: regId = APA91bG5js7Op0v4VQe9Rj_MlXVggCwGZI0KQutCjbBLtu5t07BHguKvWhQiU6JauTOvF9Ilzn9-_cbXuTg0HxUg9dL7FNIZvlt1zB6LIFHlBZ8mi-ebRyo9KZTO1XpcLzLBKQLSHyCTsBUSeuO2tlJY9Tm3o9zphA
11-29 17:55:17.916: D/NAME(29081): amit
11-29 17:55:17.916: I/AndroidHive GCM(29081): registering device (regId = APA91bG5js7Op0v4VQe9Rj_MlXVggCwGZI0KQutCjbBLtu5t07BHguKvWhQiU6JauTOvF9Ilzn9-_cbXuTg0HxUg9dL7FNIZvlt1zB6LIFHlBZ8mi-ebRyo9KZTO1XpcLzLBKQLSHyCTsBUSeuO2tlJY9Tm3o9zphA)
11-29 17:55:17.916: D/AndroidHive GCM(29081): Attempt #1 to register
11-29 17:55:17.956: V/AndroidHive GCM(29081): Posting '[email protected]®Id=APA91bG5js7Op0v4VQe9Rj_MlXVggCwGZI0KQutCjbBLtu5t07BHguKvWhQiU6JauTOvF9Ilzn9-_cbXuTg0HxUg9dL7FNIZvlt1zB6LIFHlBZ8mi-ebRyo9KZTO1XpcLzLBKQLSHyCTsBUSeuO2tlJY9Tm3o9zphA&name=amit' to http://ithinkapp.com/gcmTest/register.php
11-29 17:55:17.956: E/URL(29081): > http://ithinkapp.com/gcmTest/register.php
11-29 17:55:19.696: V/GCMRegistrar(29081): Setting registeredOnServer status as true until 2013-12-06 17:55:19.703
11-29 17:55:19.736: V/GCMBaseIntentService(29081): Releasing wakelock
一切都很好,但是当我试图从服务器和preSS发送邮件发送按钮,信息将被发送,但没有得到在设备推送通知
everything is fine but when i try to send a message from server and press send button message will be send but not getting push notification in device
推荐答案
请改变你的API密钥为主要用于服务器应用程序(使用IP锁定)并变更关键是你的config.php文件。
please change your api key as Key for server apps (with IP locking) and change key to your config.php file.
还要检查该网站的检查服务器端code工作正常与否。
http://gcm-alert.appspot.com/ also check this site for checking your server side code is working properly or not.
这篇关于没有得到推送通知,从服务器的Android设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!