2015-11-03 69 views
0

我尝试通过解析发送推送消息到IOS设备。但似乎是设备注册失败,因为“您没有注册安装您的应用程序”消息出现在解析中。用下面的代码来注册解析/ iOS设备令牌注册失败(您没有您的应用程序的注册安装)

PFInstallation *currentInstallation = [PFInstallation currentInstallation]; 
    [currentInstallation setDeviceTokenFromData:deviceToken]; 
    [currentInstallation saveInBackground]; 

没有错误发生,但注册filed.What可能是原因?????

回答

0

这看起来像配置文件问题。

确保您通过转到XCode > Preferences > Accounts > Your Account并选择应用程序ID并按下刷新按钮来同步配置文件。另外,请转至Target > Build Settings > Code SigningProject > Build Settings > Code Signing并选择正确的配置配置文件和开发人员证书。

有时,删除旧的供应配置文件,下载并安装新的配置文件,然后再按上述步骤操作也有帮助。

相关问题