安装解析通知后,iOS应用程序无法脱机工作 - xcode

时间:2012-08-21 10:08:20

标签: ios xcode parsing notifications wifi

有人有解决方案吗?在关注iOS上的通知解析教程之后,如果模拟器和实际设备上没有互联网连接,则应用程序无法启动..请告知任何解决方案。这个来源是https://www.parse.com/tutorials/ios-push-notifications。调试器结果:

2012-08-21 19:20:22.415 app[555:c07] Error: Error Domain=NSURLErrorDomain Code=-1009 
"The Internet connection appears to be offline." UserInfo=0xc50d470 
{NSErrorFailingURLStringKey=https://api.parse.com/2/create, 
NSErrorFailingURLKey=https://api.parse.com/2/create, NSLocalizedDescription=The Internet 
connection appears to be offline., NSUnderlyingError=0xc509070 "The Internet connection 
appears to be offline."} (Code: 100, Version: 1.0.64)

2012-08-21 19:20:22.415 pyxida3[555:c07] Network connection failed. Making attempt 2 after sleeping for 1.517845 seconds.

1 个答案:

答案 0 :(得分:1)

对于有同样问题的人,只需在后台保存您的对象即可。 在appDelegate中:

[testObject saveInBackground];