我正在使用最新版本的 Parse 库和最新版本的 Xcode 6.3.2 应用程序正好接收通知,当应用程序激活时,它会在本地重置角标(Badge),但在下一个通知中,角标(Badge)只会忽略角标(Badge)值为 0。
代码:
if (currentInstallation.badge != 0) {
self.reloadInfo = true
currentInstallation.badge = 0
currentInstallation.saveEventually()
} else {
self.reloadInfo = false
}
不起作用,也不起作用
currentInstallation = PFInstallation.currentInstallation()
currentInstallation.badge = 0
currentInstallation.saveEventually()
有什么想法可能是错误的吗?
提前致谢。
最佳答案
这只是配置文件、解析安装数据库的困惑,它刚刚解决了。
谢谢。
关于ios - Parse.com 快速重置推送通知角标(Badge),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31100019/