And i’m not having success , i installed it automatically
Running
cordova plugin add https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git
then
cordova prepare
,
In my app.js i put these lines of code:
if (window.cordova && window.cordova.plugins && window.cordova.plugins.insomnia){
alert("yes.");
} else {
alert("insomnia plugin missing");
}
and i get:
“insomnia plugin missing” message
I posted here because i wanted to receive some guidance (i feel like i lose my north and don’t know what to do in order to get that plugin working). Please i need some help.
Thanks for reading,