我按照此链接中提到的所有步骤https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-6-3/notifications/push-notifications-hybrid-applications/,我能够成功发送Android手机的推送通知。但iPhone没有收到任何通知。
我已正确添加了APNS证书,并打开了2195个,2196个端口。
在mobilefirst控制台中,推送通知部分显示我的iphone收到了来自事件源的10条消息。当我查看tomcat日志时,它显示以下警告
Nov 05, 2015 3:48:48 PM com.worklight.gadgets.serving.ClientConfigProfileServlet piggybackConfigProfile
WARNING: com.worklight.core.messages:could not piggyback configprofile due to invalid or incomplete headers sent from client
Nov 05, 2015 3:48:48 PM com.ibm.pushworks.server.notification.Mediator run()
SEVERE: FPWSE1067E: An Exception occurred in the mediator.
java.lang.RuntimeException: Not yet implemented
at com.ibm.pushworks.server.notification.Mediator.updateDeviceSubscriptionByToken(Mediator.java:130)
at com.ibm.pushworks.server.notification.gcm.GCMMediator.updateDeviceSubsciption(GCMMediator.java:172)
at com.ibm.pushworks.server.notification.gcm.GCMSender.sendAndVerify(GCMSender.java:169)
at com.ibm.pushworks.server.notification.gcm.GCMMediator.sendOrWait(GCMMediator.java:139)
at com.ibm.pushworks.server.notification.gcm.GCMMediator.sendNotification(GCMMediator.java:128)
at com.ibm.pushworks.server.notification.Mediator$2.run(Mediator.java:87)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
以上警告是问题的线索吗?如果是这样,我错过了什么?任何建议都会有所帮助。
答案 0 :(得分:3)
最近解决了这个问题。
访问IBM Fix Central并下载适用于MobileFirst Platform Foundation版本的最新iFix。使用更新的Studio / CLI包重新构建应用程序。