使用 Parse 和 Swift 在设备之间发送推送通知

Sending push notifications between devices using Parse and Swift

我已将我的应用程序配置为通过 Parse 接收推送通知,我可以从 Parse 仪表板发送推送通知,但我想在设备之间发送通知,特别是在任一设备上单击按钮时。我找不到关于此的文档...想知道是否有人有这方面的经验。

您必须将当前用户存储到安装中 class 然后使用 PFInstallation 查询和 PFPush 发送推送通知。

有关发送通知的更多详细信息,请参阅此解析文档。 https://parse.com/docs/ios/guide#push-notifications 或参考此网站 Swift Parse : How to Push Notification To a Specific Device/objectId