2

我使用Pushwoosh在我的原生Android應用上實施推送通知。Pushwoosh/GCM - 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/-56789 然後,我輸入一條消息,然後單擊「Woosh!」。

enter image description here

推送到但是我沒有我的設備上得到任何東西。

另外,當我去https://code.google.com/apis/console/#project::stats我看不到任何數據。它說「總請求:0」。 它不應該顯示超過0嗎?

enter image description here

我在做什麼錯?爲什麼我沒有收到我創建的推送?

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

回答

-1

嘿,你可以很容易地在自己的Android應用程序中集成推送通知,請點擊此Project的步驟,並在你的Android應用程序