使用Parse和Swift在设备之间发送推送通知 [英] Sending push notifications between devices using Parse and Swift
问题描述
我已将我的应用程序配置为通过Parse接收推送通知,可以从Parse仪表板发送该通知,但是我想在设备之间发送通知,特别是当从任一设备单击按钮时.我找不到关于此的文档...如果有人有这样做的经验,那真是令人惊讶.
I have configured my app to receive push notifications through Parse, which I can send from the Parse dashboard, but I would like to send notifications between devices, specifically when a button is clicked from either device. I cannot find documentation about this...wondering if anyone has experience doing this.
推荐答案
您必须将当前用户存储到Installation类中,然后使用PFInstallation Query和PFPush发送推送通知.
You have to store the current user into Installation class then send push notification using PFInstallation Query and PFPush.
请参阅此解析文档以获取更多详细信息以发送通知. https://parse.com/docs/ios/guide#push-notifications 或参考此网站 Swift Parse:如何推送通知特定设备/objectId
Please refer this parse documentation for more details to send notification. https://parse.com/docs/ios/guide#push-notifications or refer this site Swift Parse : How to Push Notification To a Specific Device/objectId
这篇关于使用Parse和Swift在设备之间发送推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!