AVInstallation保存devicetoken,channels和profiles时,保存失败,提示如下
error: Error Domain=AVOS Cloud Error Domain Code=137 "A unique field was given a value that is already taken." UserInfo=0x17007c800 {error=A unique field was given a value that is already taken., NSLocalizedDescription=A unique field was given a value that is already taken., code=137}

你好,请贴出保存时的完整代码。

请确认是不是 DEVICETOKEN 这一列设置了唯一索引,并且值已经存在?我们 SDK 里面提供了设置 deviceToken 的 API,不用单独存到 DEVICETOKEN 这一列下面。

如果还有疑问,请提供一下 saveInBackground 的 curl,我们帮您排查一下。

_installation这个表没有设置索引

请提供保存请求的 curl。