EddyVerbruggen / Insomnia-PhoneGap-Plugin

:sleepy: Prevent the screen of the mobile device from falling asleep

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin not loaded when installed via NPM

ph-x-net opened this issue · comments

I tried to install the plugin via NPM and then call it with
window.plugins.insomnia.keepAwake()

but it doesn't work (seems that it can't find the plugin even though it's installed).
When I on the other hand install it via CLI everything works just fine.

What am I missing? Do I have to include/import the plugin anywhere else when installing it via NPM?