【发布时间】:2019-04-11 18:34:24
【问题描述】:
我将 Firebase 云消息传递 (FCM) 与 ios 应用程序一起使用。我现在正在尝试使用以下方法获得data message without notification
application(_:didReceiveRemoteNotification:)
我可以使用http://pushtry.com/ 发送数据消息吗?我已尝试从该站点发送数据消息,但没有任何反应,而通知工作正常。
用于数据消息的 JSON
{
"message":{
"token":"mytoken comes here",
"data":{
"Nick" : "Mario",
"body" : "great match!",
"Room" : "PortugalVSDenmark"
}
}
}
还有其他网站可以测试data message without notification吗?
【问题讨论】:
-
您可以在 Firebase 控制台上执行此操作。
标签: ios swift firebase swift3 firebase-cloud-messaging