• Projects
  • How to keep Android screen from locking during game

I have checked the "Keep Screen On" and also given my Android app "Wake Lock" permissions but if the user is idle too long, the phone still locks(goes black).

It seems "Keep Screen On" not working on Android is a bug. Hopefully it will be fixed in Godot 3.1, but unfortunately there does not seem to be any way around it in Godot 3.0 (for right now at least).

:( hmm...is the 3.1 alpha released? I've seen some videos using it, I think. Where can I find information about 3.1, like when it will be released and steps to build the alpha if it's out.

Thanks!

@tproper said: :( hmm...is the 3.1 alpha released? I've seen some videos using it, I think. Where can I find information about 3.1, like when it will be released and steps to build the alpha if it's out.

Thanks!

Godot 3.1 alpha snapshot 1 has been released. You can find links to download it on this news post.

If you want to use a more cutting edge build, with newer fixes, you can download snapshot/nightly builds of Godot 3.1 or compile from source. You can find snapshot builds on the pinned topic on the forums, and there are instructions to compile Godot from source for each platform Godot supports on the documentation.

(Though sadly, it appears the Android "Keep Screen On" Bug has not been fixed yet, so newer Godot builds may not fix the issue)


As for when Godot 3.1 is going to be released, I'm not sure anyone knows right now. Godot 3.1 is in a feature freeze, where only bugs are being fixed right now with new features waiting until Godot 3.2, which means it should be released sooner rather than later.

The best place I find to follow Godot development news is both the news section on GodotEngine.org, and by following Juan (the main developer for Godot) and Rémi (the project manager for Godot) on twitter.


Hopefully this helps :smile: