[英]Push Notification sent from Bluemix Dashboard not delivered to Cordova and Android Sample Apps
我在美國南部地區注冊了一個Bluemix帳戶,並創建了一個CF移動應用程序以使用Push Notification Service。 將GCM憑證添加到推配置中,從ibm-bluemix-mobile-services存儲庫克隆了Cordova和Android HelloPush示例應用程序,並在index.js文件(對於Cordova)和MainActivity類中設置了應用程序ID和應用程序路由。 (適用於Android)。
分別遵循了適用於Android和Cordova的IBM Bluemix上的 Android helloPush示例應用程序(針對Bluemix移動服務)和HelloPush Cordova應用程序(針對IBM MobileFirst Services)中的指示 。
盡管這兩個應用程序都已在imfpush服務器上成功注冊,並且已收到帶有設備ID的令牌,但應用程序未接收到通過Push Dashboard發送的推送消息。
嘗試更改GCM憑據,但解決該問題沒有運氣。
我通過查詢確認設備已在推送服務中注冊
https://imfpush.ng.bluemix.net/imfpush/v1/apps/{applicationId}/devices/
返回注冊的設備ID。
具體來說,我注意到Cordova應用程序中的registerNotificationsCallback()
不會在任何時候被解雇。
我們最近對Android Push SDK和Cordova Push SDK進行了許多更新,希望可以幫助解決此問題。 我們還發布了Android Hello Push示例的更新,建議您在這一點上重試。
另外,請確保以下內容
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.