Saving Wi-Fi / 3G for locked iphone

I am having problems disabling Wi-Fi after 30 minutes in the iphone application, which should function when the user locks.

The application usually does not sleep, but if the user chooses this, he can block the display. I am adding a new function to an application that sends data over the network at intervals of 1 second. before that there were no network requirements for the application, and it functioned as desired (music, timer-based processes) when the user was blocked.

The answer seemed to be here: the
Wi-Fi connection did not survive in sleep mode with iOS4

But adding UIRequiresPersistentWifi to boolean for info.plist does not save it from turning off Wi-Fi (I am testing Touch, iOS4.02) after 30 minutes, even when the application is busy sending data via the connection. Maybe this only applies if the display sleeps itself, and not user locks?

Associated, I think there is no way to “shuffle” the display at any interval? The user, by pressing the "Home" button, is enough to return Wi-Fi; Unlock is not required.

In addition, I read on interwebs that at WWDC it was stated that UIRequiresPersistentWifi is also used to save 3G. Can anyone check?

thank

+3
source share
2 answers

.

iOS 4.x , , ( , VOIP ..) , VOIP, . Apple , VOIP , .

+1

- , ? iOS5 , , ( ), iOS 5 .

, , VoIP, , , . , WiFi . , .

Wi-Fi Wi-Fi. UIRequiresPersistentWiFi iOS5, WiFi, , . disableTimer = YES .

0

Source: https://habr.com/ru/post/1764511/


All Articles