"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

QCARRuntimeUtilities.ResetSleepMode()m not working?

Vuforia SDK Version: 4.0.103 - Description with steps to reproduce:

Hi.

 

Try as I might I can't get the Screen.sleepTImeout to change to SleepTimeout.SystemSetting.

 

I've tried calling both ResetSleepMode and setting the sleepTimeout manually every frame but it is never staying set. 

 

        if (Screen.sleepTimeout != SleepTimeout.SystemSetting) {            Debug.Log ("Reset sleep mode from update ");            QCARRuntimeUtilities.ResetSleepMode ();            Screen.sleepTimeout = SleepTimeout.SystemSetting;        }

 

Battery usage is a genuine concern for my project so not being able to AT LEAST dim the screen is annoying to say the least.

There has been another thread on this topic but appeared not to have a resolution. So from that thread,

 

Yes, Vuforia forces this setting on startup, although afaik, this is not new in 2.8. However, you can re-set this setting in the OnInitialized callback of the ITrackerEventHandler interface (you just need to implement a script implementing such interface and attch it to the ARCamera). We even expose Utility functions to do that:QCARRuntimeUtilities.DisableSleepMode()QCARRuntimeUtilities.ResetSleepMode()

I tried the advice in this thread to no avail. 

 

Any help would be greatly appreciated.

Scott

 

- Development OS (Mac OS X, Windows, Linux): OSX - Mobile OS and Version: 8.2 - Mobile Device Manufacturer and Model name: iPad Air 2 - Do the Vuforia Sample Applications show the same behavior?: