我正在尝试通过解析向IOS设备发送推送消息。但似乎是设备注册失败,因为在解析中出现“您的应用程序没有注册的安装”消息。使用以下代码进行注册
PFInstallation *currentInstallation = [PFInstallation currentInstallation];
[currentInstallation setDeviceTokenFromData:deviceToken];
[currentInstallation saveInBackground];
没有发生错误,但注册filed.What可能是原因?
发布于 2015-11-03 17:54:51
这看起来像是配置文件的问题。
通过转到XCode > Preferences > Accounts > Your Account
并选择应用程序Id并按刷新按钮,确保同步配置文件。此外,请转到Target > Build Settings > Code Signing
并在Project > Build Settings > Code Signing
中选择正确的配置配置文件和开发人员证书。
有时,删除旧的配置配置文件,下载并安装新的配置文件,然后执行上述步骤也会有所帮助。
https://stackoverflow.com/questions/33495891
复制相似问题