How to have app keep mobile screen active

Hey guys,

I was testing something on my mobile device when I noticed that simply having my game open didn’t keep the phone from turning off the screen. How can I make my app do this?

Hi!
I think this is what you are looking after: window.set_dim_mode().

1 Like

@sven, will set_dim_mode() prevent the phone from turning off the screen as well?

Oh! Good question, that I’m not sure of! :frowning:

I think that is what I’m looking for as well. It seems I was searching the wrong terms last night. Thanks!

Yes it should.

1 Like