I know that on iOS 4 , the Wi-Fi connection was always constant, so going to sleep / blocking supported the connection.
This has been changed in the next version of iOS 5 to improve battery life.
In iOS 5 , requiring the device to be connected to a power source in order to have a permanent Wi-Fi connection.
The Wi-Fi connection is automatically disconnected after the iPad goes into sleep mode / locked.
Here is my problem, I am sending a large chunk of data via WiFi, which may take too long. Therefore, the user must wait for the transaction to complete.
The iPad may switch to hibernation / block, and the sending process takes longer, which will result in a WiFi connection error.
Now I set UIRequiresPersistentWiFi to YES in info.plist. However, the same network problem repeated.
I would like to maintain / constantly support the WiFi connection, even the iPad goes into sleep mode / locked in iOS5 . So, are there any alternatives to achieve this.
Thank.
source
share