How can I disable the automatic screen lock when there is a long absence of activity in my application? Runtime C3.
As far as i know, you can't .... that is a device setting not a software setting, you can force request that on android but for ios that will not probably work since Apple is more special when comes to apps taking over users devices. While from your apps perspective is good to have that on, for a user end might look over-reaching/invasive ... the only thing you can do is ask people to disable or increase the screen awake time from their device settings. Anything more than that option would be come suspicious and might get your app ratings high consumption on battery usage, which is never good.
Instead of trying to keep the device screen on, try the alternative and make your app run in background if the user is away from the device and the screen locks or battery protection kicks in and shuts the screen off. Hope my input makes sense to you... Have fun.