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

Push notification reached the device but not able to see it in the applicaition

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

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

您已收到针对 Push.ALL 标签的通知。这是一个广播通知,不会出现在您通过 Eventsource 订阅注册的回调中。

您应该使用 onMessage 回调 API,如 KnowledgeCenter and GettingStarted 中所述。