Keep Screen on While Collector is Open

01-21-2019 05:27 AM
Status: Open
Occasional Contributor II

Some of my Users use collector as a guide while driving. The latest version of collector [IOS v 18.1.0] turns off after about a minute (or whatever the iphones auto-lock time is set to). The older version (pre-aurora) would stay on as long as the app is open. It would be great to have this functionality again. 

1 Comment


[[UIApplication sharedApplication] setIdleTimerDisabled: YES];

Swift (legacy):

UIApplication.sharedApplication().idleTimerDisabled = true

Swift 3/4:

UIApplication.shared.isIdleTimerDisabled = true

Just need to add to the app code its a quick easy thing to do. It is actually illegal in Australia to touch a device whilst driving a motor vehicle so this is critical. Doug MorgenthalerKory Kramer