Skip to content

Instantly share code, notes, and snippets.

@csemrm
Created December 16, 2013 12:39
Show Gist options
  • Save csemrm/7986361 to your computer and use it in GitHub Desktop.
Save csemrm/7986361 to your computer and use it in GitHub Desktop.
How to prevent Auto Lock in you IOS device when apps are running? You can easily manage auto lock status in titanium. Here is my simple code for preventing auto lock option in iOS.
var win = Titanium.UI.createWindow({
backgroundColor : '#ddd',
});
Ti.App.idleTimerDisabled = true;
alert(Ti.App.getIdleTimerDisabled());
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment