I have written an app that basically removes the Safari navigation bars by using a UIWebView and a settings bundle to set url. A pretty simple app... however, even with JavaScript sending AJAX calls and AutoLock turned off, the iPod Touches still turn off the WiFi radio after some time (can't tell exactly how long). Is there any way that I can keep the radio alive programmatically? I have found some sample code from Apple that shows how to detect availability but no discussion on activating the radio if it shuts off.
I do not want to do any jailbreaking in order to accomplish this. I have AutoLock set to 'Never' because ideally I'd like to keep the display on at all times. (By the way, the organization I work for owns all the devices this app will be on which is why the AutoLock will always be set to Never).
If anyone can help, I would very much appreciate it.
I have written an app that basically removes the Safari navigation bars by using a UIWebView and a settings bundle to set url. A pretty simple app... however, even with JavaScript sending AJAX calls and AutoLock turned off, the iPod Touches still turn off the WiFi radio after some time (can't tell exactly how long). Is there any way that I can keep the radio alive programmatically? I have found some sample code from Apple that shows how to detect availability but no discussion on activating the radio if it shuts off.
I do not want to do any jailbreaking in order to accomplish this. I have AutoLock set to 'Never' because ideally I'd like to keep the display on at all times. (By the way, the organization I work for owns all the devices this app will be on which is why the AutoLock will always be set to Never).
If anyone can help, I would very much appreciate it.
Thanks ecume! As far as I can tell my 2 test devices are maintaining their WiFi connection even after 10+ minutes without a touch event.
One quick follow up question for you if you have a free minute. I found this link to see all the possible info.plist field/value pairs, but is there a more official list? The UIRequiresPersistentWiFi was not mentioned in the SDK docs as far as I can tell.
It is officially mentioned in iPhone OS Programming guide.. Search for UIPersistentWifi key in the pdf.. Wifi connection is switched off after 30 min from the time when the application is launched to preserve battery..
It is officially mentioned in iPhone OS Programming guide.. Search for UIPersistentWifi key in the pdf.. Wifi connection is switched off after 30 min from the time when the application is launched to preserve battery..
Bear in mind this code is specifically geared to help you detect for WiFi or Edge/3G. I doubt it can detect whether someone has their sound turned on or off.