I have an application which performs a long running network operation. Now long running means approx 2 hour or more. Since this app downloads data from server and updates the ui as well it is required to keep is protected from iOS lock (screen gets locked and app is sent to background).
I have seen apps which can protect themselfs from being sent into background, for example angrybirds, you open any level and keep it idle, screen will not lock.
Do anyone having any idea how to do that?
[UIApplication sharedApplication].idleTimerDisabled = YES;
will disable the automatic screen lock.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With