fluttercommunity / wakelock_plus

Flutter plugin that allows you to keep the device screen awake on Android, iOS, macOS, Windows, Linux, and web.
BSD 3-Clause "New" or "Revised" License
71 stars 54 forks source link

[Android] set levelAndFlags and tags parameters in Android #62

Open AsmaaAlamrawy opened 5 months ago

AsmaaAlamrawy commented 5 months ago

Is there a way to set levelAndFlags and tag parameters for newWakeLock android method ?

The reason behind this question is that I want to set a specific tag that should be useful for Huawei/Honor devices that might kill app services unless they have some whitelisted wakelock tags.

More info about this can be found here