Hey guys,
In our app, although I am doing:
Screen.sleepTimeout = SleepTimeout.SystemSetting;
it works on iOS and not on Android.
Note:
We have this:
<uses-permission android:name="android.permission.WAKE_LOCK" />
Defined in the manifest.
What might be the issue?
We need to be able to put the app to sleep after a while (according to system settings is perfectly fine but its not working).
I read you need to activate a wake lock and then manually deactivate it after your given time.
– meat5000According to the docs this should work (its a unity method).
– GuyTidharI couldn't get sleepTimeout to do anything either.
– meat5000