Closed jalbam closed 10 years ago
Sorry, I answer myself:
Reading the documentation of Insomnia which says "The required javascript file is brought in automatically. There is no need to change or add anything in your html." I thought I didn't have to add anything, but after adding the following line to my index.html now it works properly:
Without that line my project still worked with PhoneGap Build but not the Insomnia plugin. I didn't need to add at all.
Hi,
I am using Insomnia 3.0 with PhoneGap 3.3.0. The following code always fire the catch error ("fatal error for insomnia"):
And this is always false: if (typeof(window.plugins) !== "undefined" && typeof(window.plugins.insomnia) !== "undefined" && typeof(window.plugins.insomnia.keepAwake) !== "undefined")
I also tried to execute the code with an onClick event of a button instead of body's onLoad with no success.
I am using PhoneGap Build through web interface and in Plugins it detects Insomnia as installed:
Third Party VERSION LATEST VERSION nl.x-services.plugins.insomnia 3.0 3.0
This is my config.xml:
Thank you in advance.
Cheers, Joan