I'm developing a messaging app and auto lock doesn't function when app left open. (No single line is related to auto lock in code)
I've used this line to enabling it,
[[UIApplication sharedApplication] setIdleTimerDisabled:NO];
but its not working.
Any idea how to get this done?
For anyone who is facing the same issue.