title: Losing network connectivity on iPhone
body: <p>I am developing a network application on iPhone that requires internet connection all the time. However, once I login to the server and keep the iPhone idle for a while, the iPhone goes to sleep mode and disconnects my network connection (it logs me out). </p>
  
  <p>If I run the same application on iPhone, while the iPhone is connected to the PC through USB cable, it never loses its network connection.</p>
  
  <p>In the info.plist file I have added these two flags, but does not seem to have any effect.</p>
  
  <p>UIRequiresPersistentWifi -> true
  SBUsesNetwork - integer ->3</p>
  
  <p>Am I missing anything? Could you please let me know how can I make sure that the network connection is persistent throughout the life of the application?</p>