Skip to content

Conversation

TheNoumanDev
Copy link
Member

Ticket: https://pub.dev/packages/wakelock_plus

Example EDL of action:

wakelock:
  enable: true # could be true and false
  onComplete: |
    console.log('Wakelock enabled - screen will stay awake');
  onError: |
    console.log('Failed to enable wakelock');

And we can get the current status from using ensemble.device.wakelockEnabled

Its latest version required package_info_plus to be upgraded, and package_info_plus required the latest Kotlin and gradle version.

@TheNoumanDev TheNoumanDev linked an issue Oct 2, 2025 that may be closed by this pull request
Copy link
Member

@sharjeelyunus sharjeelyunus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enable should not be required, it should be true by default

PS: remove unnecessary print statements

@TheNoumanDev TheNoumanDev merged commit adfe014 into main Oct 5, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to keep the device screen awake

2 participants