ProView Forum

where ProView persons gather

You are not logged in.

#1 2016-10-20 17:26:17

chang3d
Member
Registered: 2016-10-20
Posts: 2

iOS App Needs to Stay Awake

In order to do a firmware update, the App has to stay on the screen. But leaving my phone alone, my phone goes to sleep. And that would stop the firmware update process. It's lucky that it did not brick the ProView S3.

Also, after the phone tries to sync up the first time, it will try to calibrate. During this calibration process, my phone fell asleep yet again, stopping the calibration and syncing process. So I had to start over and keep hitting the screen every now and then, which probably could mess up the calibration.

Could you guys add this line of code to the app:

Objective-C

[[UIApplication sharedApplication] setIdleTimerDisabled: YES];

Swift

UIApplication.sharedApplication().idleTimerDisabled = true

Last edited by chang3d (2016-10-20 17:29:37)

Offline

#2 2016-10-21 04:14:28

admin
Administrator
Registered: 2016-09-08
Posts: 134

Re: iOS App Needs to Stay Awake

Will add this in next update release. Thank you.

Offline

Board footer

Powered by FluxBB