Insomnia-PhoneGap-Plugin icon indicating copy to clipboard operation
Insomnia-PhoneGap-Plugin copied to clipboard

:sleepy: Prevent the screen of the mobile device from falling asleep

Results 13 Insomnia-PhoneGap-Plugin issues
Sort by recently updated
recently updated
newest added

Hi, I'm using Insomnia on a Ionic4 app in this way: ` if (this.platform.is('cordova')) { this.insomnia.keepAwake() .then( (res) => { console.log(`'@ allowSleepAgain --> success'`); }, (err) => { console.log('@ allowSleepAgain...

I'm developing an app using Cordova, and the Insomnia plugin is perfect for what I need. But I can't make it work. To make everything as simple as possible, I...

Hi Eddy, I'm just facing a strange issue. Can you please let me know to resolve it? @EddyVerbruggen

After adding this plugin i got "Java exception was raised during method invocation" on my console whenever i've tried to use any other cordova plugin method as file, inappbrowser, share...

Hi, is there a settings on android that will prevent the plugin from work? I've try with different device and I put this code on my app.component.ts: platform.ready().then(() => {...

Seems that do not works on Cordova 7.0.0 `Failed to install 'cordova-plugin-insomnia': Error: ENOENT: no such file or directory, open '/Users/salvatorealessandrorusso/DEV/AMOSInvetory_mod2/platforms/android/AndroidManifest.xml' at Object.fs.openSync (fs.js:646:18) at Object.fs.readFileSync (fs.js:551:33) at Object.parseElementtreeSync (/Users/salvatorealessandrorusso/DEV/AMOSInvetory_mod2/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)...

This plugin works great and does what it says it does. But what would be even better would be to have the ability to dim the screen in order to...

Can you please add information to the readme for Android N and above Doze mode for this plugin? After 5 mins it stops due to switch over to doze mode...

I used this plugin in an Android tablet that should awake at 8:00 am and sleep at 8:00 pm every day, in a survey app in a local business,everything works...

Did a quick test on my Android device (no iOS device handy), and it seems like the behavior is: - call keepAwake - device screen stays on forever as long...