My iPhone application establishes a TCP connection via Wi-Fi to a remote server. However, if there is no user activity for a certain time, the device closes Wi-Fi and disconnects the connection. Can this be prevented? I need a constant connection while the application is running. Setting setIdleTimerDisabled: YES does not help - it prevents the screen from exiting, but Wi-Fi is closed.
Do you know if this is possible and how to achieve it?
source
share