Note that there are some explanatory texts on larger screens.

plurals
  1. POmy iPad app kills wifi until minimized
    text
    copied!<p>We have an iPad app that is designed to download data that the user may read when no longer connected to wifi. When it does download, it fetches thousands of PDFs. Occasionally while testing the fetching I experience the following behaviour:</p> <ol> <li>Start downloading the PDFs</li> <li>At some point the wifi connection drops even though the router is still up and running and others continue to use it (I'm 12' from the router). The <code>NSURLConnection</code> calls its <code>didFailWithError</code> with either <code>NSURLErrorNotConnectedToInternet</code> or <code>NSURLErrorNetworkConnectionLost</code> as its error and the wifi indicator in the top left disappears.</li> <li>As soon as I minimize the app (whether immediately or an hour later) the wifi indicator reappears.</li> <li>Restore the app, start downloading again - no problems.</li> </ol> <p>Is there some iOS feature that prevents too much downloading? Is there some method I can call to prevent this from happening?</p> <p>This issue (http://stackoverflow.com/questions/8121526/wifi-drops-in-ipod-after-a-while-running-my-application) deals with a similar issue and points to the <code>UIRequiresPersistentWiFi</code> flag (see <a href="http://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW12" rel="nofollow">http://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW12</a>). The problem is that the app is intentionally designed to not require persistent wifi.</p> <p>A couple of other tidbits:</p> <ul> <li>Running iOS 5.1 on an iPad2. (Don't know if it is happening on other versions.) </li> <li>I cannot modify the app to download one big zip with all PDFs; it is a product requirement and just makes sense. </li> <li>The <code>NSURLConnections</code> are spawned from a background thread with 5 active connections simultaneously.</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload