Copy link to clipboard
Copied
The people at the Samsung App Store have a problem with disabling the lockscreen on their apps.
So when I have these 2 permissions enabled:
| <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> |
it makes sure the application does not dim the screen, however it also disables the lockscreen of course.
Is there no way to make sure the screen does not dim while still having the lockscreen enabled?
SInce Samsung rejects apps for this...
Copy link to clipboard
Copied
Have you also set:
NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;
Copy link to clipboard
Copied
I did actually, and I toggle between the NORMAL and KEEP_AWAKE when going into the background.
But somehow I managed to get the screen to stay awake without that DISABLE_KEYGUARD line in the permissions at this point.
So I think it's fully working... it's still strange that it went to dim the screen at a certain point in a previous build of my app.
Copy link to clipboard
Copied
Feature request for this issue: Feature#3837566 - [New_Feature_Requirement] [Android] Separate wake lock and keyguard managing
Copy link to clipboard
Copied
I had the same problem so I implemented own keepAwake function as a part of this open source ANE https://github.com/Oldes/ANEAndroidCommon
Find more inspiration, events, and resources on the new Adobe Community
Explore Now