My application has a screen on which it constantly requests information about the server. When the user does not interact with the application, he goes into standby mode, the screen becomes dim and then black.
In the background, the application is still trying to interrogate the service, but it receives error codes -1009 from NSURLConnection. (-1009 == NSURLErrorNotConnectedToInternet)
My idea is to stop polling on the server for information as soon as the application goes into this idle state.
Is there a way to get notified when a device goes into standby state?
source
share