iOS swift : Parse remote push notification does NOT go to all users

标签 ios iphone swift parse-platform push-notification

我有两台设备(我同事的和我的)。他在芝加哥,我在华盛顿特区。两者都没有连接到任何计算机。当我从 Parse 的远程推送 ( https://www.parse.com/apps/ "your app name here "/push_notifications ) 发送推送时,只有我的设备收到通知。

当我选择发送到所有设备时,只有我的设备收到通知。

当我选择只发送到他的设备时,它说它将被发送到一个设备:

enter image description here
他没有收到通知,在推送状态窗口中显示“推送已发送 - 0”。
enter image description here

我知道 Parse 识别他的用户指针,因为如果你输入一个无效的用户指针,你“将被发送到 0 个设备”

invalid user pointer

我们都在同一个构建上工作,并且拥有完全相同的代码。项目之外是否有可能不同的设置?是的,他已授权该应用程序的通知。

此外,额外验证:这是我的用户表的屏幕截图。
enter image description here

这是安装表中的相关行:

enter image description here

Parse 的条件识别他的设备:

enter image description here

最佳答案

很久以前我也遇到过同样的问题。其原因可能是无效/损坏的 deviceTokens。

在我的案例中,它有助于卸载应用程序并从 Parse 数据库中删除损坏的安装。然后我不得不再次在设备上重新安装该应用程序。这样就会生成一个新的 devicetoken,并将一个新的安装添加到解析数据库中。

关于iOS swift : Parse remote push notification does NOT go to all users,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28663978/

相关文章:

macos - Swift - NSMenuItem Popover 没有获得焦点

swift - 如何在 Firebase 中检索数据的名称

ios - 在后台线程中创建 View Controller

ios - 如何在 ios 6 上创建和保存 EKCalendar

ios - XCTestRunner 可以访问目标应用程序的 View Controller 属性吗?

c# - 自定义 UITableViewCell 宽度问题

iphone - iOS 开发者可以查看文件系统吗?

ios - xcode 调试编辑器区域

iphone - 我的 View 显示 y20,尽管其框架设置为 y=0。旋转后它会恢复到 y=0

ios - swift - NSPredicate