Jump to content

Backlight during game Android


Lizard
 Share

Recommended Posts

Hello everyone!

I making project on phaser with accelerometer control. The problem is when you did not touch screen during game in mobile browser it starting turning off backlight.

Is here any possibles to solve this problem?

Best regards.

Link to comment
Share on other sites

Not sure about anything built into Phaser to solve this, but I've just tried this: NoSleep.js (they have a live demo link at the bottom).

That seems to work nicely. I left it on my Nexus 5X, chrome browser and the backlight stayed on while I left it alone for 5 minutes.

Link to comment
Share on other sites

18 hours ago, gnoof said:

Not sure about anything built into Phaser to solve this, but I've just tried this: NoSleep.js (they have a live demo link at the bottom).

Thanks a lot! This is exactly what i looked for. Working really nice for me too :)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...