Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

I'm trying to implement insomnia plugin to keep my app awake

$
0
0

@Zaga wrote:

And i'm not having success :frowning: , 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,

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>