Skip to content

question about partial wakelock #15

@amunters

Description

@amunters

Hi,
thanks for the useful plugin, and also for the enhancement by Boltex.

My Android app fetches data periodically from a server. In order to keep the app running at all times I'm using Katzer's background plugin along with your powermanagemen plugin.
This works very well, however there is still one problem: the screen remain on all the time (unless I manually switch it off with the power button). Even when I switch to another app the screen remains on all the time.
I would like to have the screen go off automatically after some time of inactivity, just like any other app.
When I use window.powerManagement.acquire, the screen remains on with full brightness.
When I use window.powerManagement.dim, the screen will go dim after a while, but it will never go off completely.
How can I have the screen go completely off automatically as usual (while still keeping the app running)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions