Closed gerbil closed 9 years ago
I got 'TypeError: Cannot read property 'keepAwake' of undefined' error on real device after: window.plugins.insomnia.keepAwake(); in my controller.
Don't forget to include a reference to cordova.js and wait for deviceready to fire.
I got 'TypeError: Cannot read property 'keepAwake' of undefined' error on real device after: window.plugins.insomnia.keepAwake(); in my controller.