Marcos Liell

Results 2 comments of Marcos Liell

I also need the plugin to load when the app is opened, not who clicks the button. Any solution?

I win! function onLoad() { document.addEventListener("deviceready", onDeviceReady, false); } function onDeviceReady() { window.plugins.insomnia.keepAwake(); } This code works for me.