I'm making an app for IOS that I already have ready on Android, I wanted to make a method that would leave the screen always on, but I'm not able to
On Android I did it 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" />
If someone knows what it would be like for IOS, I'm grateful for the help, Hugs!