6
I’m making an app for IOS I already have ready on Android, I wanted to make a method that left the screen always lit, but I’m not getting
On Android I did this way:
Mainactivity:
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "watever");
wl.acquire();
Manifest:
<uses-permission android:name="android.permission.WAKE_LOCK" />
In case anyone knows what it would be like for IOS, I’m grateful for the help, Hug!