我正在使用设备进行推送通知。
我正在尝试使用func删除安装上的所有通道,而不使用removeObject,因为应用程序在在线时会出现错误,因为它将存储addUniqueobject和removeObject,而不需要在后台保存。我试着用。
let currentInstallation = PFInstallation.currentInstallation()
currentInstallation.deleteInBackground()
但它不会从安装中删除通道。有人知道如何从解析安装中删除所有通道吗?
发布于 2016-01-04 05:41:46
应移除当前安装通道属性上的通道,然后保存安装对象。
我不太记得房产的名称,但可能是这样的:
PFInstallation.currentInstallation.channels = [""]
PFInstallation.currentInstallation.saveInBackground()
https://stackoverflow.com/questions/34592470
复制相似问题