当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Network connection corrupt when offline/online

问题描述:

I have issue with my app when off/on network connection (wifi/3g) on IOS.


I use Phonegap/Cordova to build my app. It working fine when connected on wifi/3g.


And network get corrupt in case:


  1. Put app on background. Turn off network connection - on airplane mode.


  2. Turn on network connection - off airplane mode. Or switch from wifi to 3g.


  3. Launch app from background and my app can't connect to internet. Request send from UIWebView and AFNetworking on my app auto fail (return immediately with status 0).
    I open browser to test network connection at time and it working.


    My app only work when close and open again.

I was search and have no idea to solve problem.


Same problem: https://issues.apache.org/jira/browse/CB-9047


Please help/provide me any suggestion, information with my problem.


How can i solve this problem?


Thanks all.

分享给朋友:
您可能感兴趣的文章:
随机阅读: