Change power state level when app goes in background/foreground
By AVSukhov94p
21 Jan 2016 03:49
This code shows how to change power state level when app goes in background/foreground using visibilitychange event.
When app in foreground and SCREEN_NORMAL state is requested, the device does not turn off screen automatically.