Pushwoosh / GCM - Android - 不接收消息

时间:2013-10-08 21:31:57

标签: android push-notification google-cloud-messaging pushwoosh

我正在使用Pushwoosh在我原生的Android应用上实现推送通知。

我已关注此链接:http://www.pushwoosh.com/programming-push-notification/android/native-android-sdk-integration/

当我运行我的应用程序时,我收到以下调试消息:

10-09 10:09:16.529: W/DeviceRegistrar(16545): Try To Registered for pushes
10-09 10:09:16.534: W/PushWoosh DeviceFeature2_5(16545): Try To sent AppOpen
10-09 10:09:17.749: W/PushWoosh: NetworkUtils(16545): PushWooshResult: {"status_code":200,"status_message":"OK","response":null}
10-09 10:09:17.749: V/GCMRegistrar(16545): Setting registered on server status as: true
10-09 10:09:17.754: W/PushWoosh: NetworkUtils(16545): PushWooshResult: {"status_code":200,"status_message":"OK","response":null}
10-09 10:09:17.754: W/PushWoosh DeviceFeature2_5(16545): Send AppOpen success
10-09 10:09:17.754: W/PushEventsTransmitter(16545): No android.permission.BROADCAST_STICKY. Reverting to simple broadcast
10-09 10:09:17.774: W/DeviceRegistrar(16545): Registered for pushes: APA91bEq5ihxMX7cr-qE1RLCEKF_mZf9PBGpNxerm3OhKnwk9iAnuGjDYkn3x-XR93OHJbYFOCayF7C-Q...

如您所见,一切似乎都没问题(即设备已注册接收推送消息)。

之后我转到https://cp.pushwoosh.com/applications/01234-56789 然后我输入一条消息并点击" Woosh!"。

enter image description here

推送已发送但我的设备上没有任何内容

此外,当我转到https://code.google.com/apis/console/#project:0123456789:stats时,我看不到任何数据。它说"总要求:0"。 是否应该显示超过0?

enter image description here

我做错了什么?为什么我没有接受我创造的推动?

更新:我使用的是最新的 Pushwoosh.jar https://github.com/shaders/push-notifications-sdk/tree/master/SDK/Android

2 个答案:

答案 0 :(得分:3)

我终于找到了问题所在。防火墙阻止了GCM使用的端口!

有关详细信息,请查看此帖子:Which port and protocol does Google Cloud Messaging (GCM) use?

希望它有所帮助! :)

答案 1 :(得分:-1)

嘿您可以在Android应用中轻松集成推送通知,请按照此Project的步骤操作,并在您的Android应用中集成推送通知