A plugin to keep awake the device screen
npm install @gachlab/capacitor-keep-awake-plugin
npx cap sync
dontAllowSleep() => Promise<{ isAllowdSleep: boolean; }>
Returns: Promise<{ isAllowdSleep: boolean; }>
allowSleep() => Promise<{ isAllowdSleep: boolean; }>
Returns: Promise<{ isAllowdSleep: boolean; }>