推送通知已到达设备但无法在应用程序

时间:2015-12-07 11:15:31

标签: push-notification google-cloud-messaging ibm-mobilefirst mobilefirst-cli

我在我的应用程序中使用mobilefirst推送通知服务。我正在使用rest api将消息发送给GCM。

GCM接收并将其发送回移动设备但在设备中我能够在日志中看到推送消息,但不在警报中,这是我在客户端设备中注册的事件源。

enter image description here

1 个答案:

答案 0 :(得分:1)

您收到了针对Push.ALL标记的通知。这是广播通知,不会出现在您使用Eventsource订阅注册的回调中。

您应该使用onMessage回调API,如KnowledgeCenterGettingStarted中所述。