If i have it unchecked will the wifi turn off after awhile or something?
How does the phone maintain the connection if this is checked?
I have admob in my app, should i have this checked then just in case?
If i have it unchecked will the wifi turn off after awhile or something?
How does the phone maintain the connection if this is checked?
I have admob in my app, should i have this checked then just in case?
See the Apple docs.
whoa but don’t most people want to have internet access all the time in case of texting, etc…
Or is wifi different from some other internet connection?
This just relates to your app.
Always wondered this myself, i’ve always had it on for my multiplayer games (with ads) so makes sense to have it on for that i guess?
oh i get it now, so ios can have per app wifi control… didn’t know that. COOL thanks!
Just found this here.
If your app accesses the network using the Wi-Fi radios, you must notify the system of that fact by including the UIRequiresPersistentWiFi key in the app’s Info.plist file. The inclusion of this key lets the system know that it should display the network selection dialog if it detects any active Wi-Fi hot spots. It also lets the system know that it should not attempt to shut down the Wi-Fi hardware while your app is running.
To prevent the Wi-Fi hardware from using too much power, iOS has a built-in timer that turns off the hardware completely after 30 minutes if no running app has requested its use through theUIRequiresPersistentWiFi key. If the user launches an app that includes the key, iOS effectively disables the timer for the duration of the app’s life cycle. As soon as that app quits or is suspended, however, the system reenables the timer.
Read my post above.
Thinking about it, it looks like it needs to be enabled if you need any internet connection when mobile data is not available.
If the hardware is turned off when your app starts and you don’t have this enabled them presumably you won’t be able to access the internet via wifi.
then it’s settled
wouldn’t want ads not to work…
Reading more on the subject, I think that it’s basically just for energy saving, i.e. it can shut down the wifi radios after a period of time. If your app needs an internet connection then you’ll always get it if it’s available.
hmm well in that case… ill leave it off then!
This stuff should really be explained better…
thanks for the research dude.
I’ve always left it at default (off) and have had no issues.