I set system.setIdleTimer(true).
but screen is not off in my app.
but if system goes to home screen, screen lock is working.
I use CoronaCards iOS.
I set system.setIdleTimer(true).
but screen is not off in my app.
but if system goes to home screen, screen lock is working.
I use CoronaCards iOS.
[UIApplication sharedApplication].idleTimerDisabled = NO; is also.
Can you do a:
print( system.getIdleTimer() )
and see what it’s printing?
https://docs.coronalabs.com/api/library/system/getIdleTimer.html
Rob
What version of iOS 9 are you using?
My iOS version is 9.3.2.
system.setIdleTimer(true)
print( system.getIdleTimer() ) – true
I don’t have corona cards but i would report of a bug if system.setIdleTimer(true) is not working
I wonder if there is something on the native side blocking it. Let me see if I can run a quick test and see.
Rob
Engineering looked at this. If you run the app from the device outside of Xcode then setIdleTimer() seems to work as expected. But when you run from Xcode hitting the play button, Xcode seems to be preventing the app from going to sleep. Try untethering and giving it a try.
Rob
It works well. (-:
Thanks, Rob.
[UIApplication sharedApplication].idleTimerDisabled = NO; is also.
Can you do a:
print( system.getIdleTimer() )
and see what it’s printing?
https://docs.coronalabs.com/api/library/system/getIdleTimer.html
Rob
What version of iOS 9 are you using?
My iOS version is 9.3.2.
system.setIdleTimer(true)
print( system.getIdleTimer() ) – true
I don’t have corona cards but i would report of a bug if system.setIdleTimer(true) is not working
I wonder if there is something on the native side blocking it. Let me see if I can run a quick test and see.
Rob
Engineering looked at this. If you run the app from the device outside of Xcode then setIdleTimer() seems to work as expected. But when you run from Xcode hitting the play button, Xcode seems to be preventing the app from going to sleep. Try untethering and giving it a try.
Rob
It works well. (-:
Thanks, Rob.