Hey there!
I’m trying to get a simple console.log
from this.flashlight.isSwitchedOn();
but I caught every time these warning:
console.warn: Native: tried calling Flashlight.isSwitchedOn, but the Flashlight plugin is not installed.
console.warn: Install the Flashlight plugin: ‘ionic cordova plugin add cordova-plugin-flashlight’
The Problem: I have installed the Flashlight Plugin.
Tried many times uninstall and install again, but I got this every time.
Ionic info:
cli packages: (C:\Users\Carlos Nardo\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.1 ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : not installed
local packages:
@ionic/app-scripts : 3.1.8 Cordova Platforms : none Ionic Framework : ionic-angular 3.9.2
System:
Node : v6.11.0 npm : 3.10.10 OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
Any toughts on this? Regards,