Change power state level when app goes in background/foreground
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.
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
Enter a description.