简体   繁体   English

IBM Worklight - IBM appcenter 客户端 (apk) 的推送通知未交付

[英]IBM Worklight - Push Notification for IBM appcenter client (apk) Not delivering

I am trying to get the push notification on android appcenter client(apk) for every update from app-center console, I have configured everything as per docs ( http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.appadmin.doc%2Fappcenter%2Ft_ac_gcm_connect.html ).我正在尝试从应用程序中心控制台获取每次更新在 android appcenter 客户端(apk)上的推送通知,我已经按照文档( http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/)配置了所有内容index.jsp?topic=%2Fcom.ibm.worklight.appadmin.doc%2Fappcenter%2Ft_ac_gcm_connect.html )。 When i see the logs there is no any error but it says当我看到日志时,没有任何错误,但它说

[4/23/14 1:43:50:447 PDT] 0000002e AppCenterServletContextListener I The list of messages to be pushed has been cleaned up. [4/23/14 1:43:50:447 PDT] 0000002e AppCenterServletContextListener I 要推送的消息列表已清理。

for every 10 second.每 10 秒。 but am not getting any notification on my device.但我的设备上没有收到任何通知。 my liberty server.xml configs are jndiName="ibm.appcenter.gcm.signature.googleapikey" value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" jndiName="ibm.appcenter.push.schedule.period.amount" value="10" jndiName="ibm.appcenter.push.schedule.period.unit" value="seconds"我的自由 server.xml 配置是 jndiName="ibm.appcenter.gcm.signature.googleapikey" value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" jndiName="ibm.appcenter.push.schedule.period.amount" value="10" jndiName="ibm. appcenter.push.schedule.period.unit" value="seconds"

please tell me where is the mistake.请告诉我错误在哪里。

The message "The list of messages to be pushed has been cleaned up" occurs when the system sends out the push notifications.系统发出推送通知时,会出现“待推送消息列表已清理”消息。 That is: when an app is updated, the corresponding push notification is first queued.即:当一个应用程序更新时,相应的推送通知首先排队。 Then, every X seconds/minutes/hours, the queue is cleaned and all pending push notifications are sent.然后,每隔 X 秒/分钟/小时,清理队列并发送所有待处理的推送通知。 At that time point, you see the message "The list of messages to be pushed has been cleaned up" in the log.此时,您会在日志中看到“待推送消息列表已清理”的消息。 Hence, this log message is normal.因此,此日志消息是正常的。

Possible reasons that the push notification does not reach an Android device:推送通知未到达 Android 设备的可能原因:

  • Most common: No google account is set on the device.最常见:设备上未设置谷歌帐户。 See under Settings |请参阅设置 | Accounts whether you have a google account for the device.帐户是否有设备的谷歌帐户。 I think when you log in to Google Play or to Google Mail on the device, it automatically registers your device with your google account.我认为当您在设备上登录 Google Play 或 Google Mail 时,它会自动使用您的 Google 帐户注册您的设备。
  • The Application Center Client was not rebuild properly after changing IBMAppCenter/apps/AppCenter/common/js/appcenter/config.json.更改 IBMAppCenter/apps/AppCenter/common/js/appcenter/config.json 后,Application Center Client 未正确重建。 It is not enough to set up the server, you also need to rebuild the client.设置服务器是不够的,还需要重建客户端。 The APK file that is distributed within the Worklight installation is not build for push notifications.在 Worklight 安装中分发的 APK 文件不是为推送通知构建的。
  • On some phones available in China, push notifications are disabled (probably for legal/license reasons)在中国的某些手机上,推送通知被禁用(可能是出于法律/许可原因)
  • The push service account is not properly set up.推送服务帐号设置不正确。 See http://developer.android.com/google/gcm/gs.html请参阅http://developer.android.com/google/gcm/gs.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM