iOS App is crashing in 3G network scenarios..Why?
Thanks to our friend Rahul
The possible reasons would be:
1. iOS supports 5 service calls concurrently, this is a limit put from the OS. Advisable to make minimum amount of calls. 1-2 calls asynchronous, this will even help in low network speed.
Here is a library that deals with thread pool and URL dispatching just in case: https://github.com/Weswit/utility-ThreadPool-ios
The article: http://blog.lightstreamer.com/2013/01/on-ios-url-connection-parallelism-and.html
2. The above issue might be the root cause of the application crashing at certain points, call not handled properly. Application not receiving data since the network speed is slow, "request times out" not handled.
3. I'm guessing that the call are made asynchronous, if not then they should be made asynchronous or in background thread, a loader should be shown while this operation is performing. So that the UI does not hang till the data is received.
If quick fixes are needed, recommended to add try catch blocks and show a alert in the finally section.
Comments
Post a Comment