EddyVerbruggen / Flashlight-PhoneGap-Plugin

:flashlight: Cordova plugin for using the torch / flashlight of your device
MIT License
60 stars 71 forks source link

Conflicts with Camera #64

Open martrix78 opened 2 years ago

martrix78 commented 2 years ago

I am trying to use this plugin with @capacitor-community/barcode-scanner But I am getting an error E/CameraService: setTorchMode: torch mode of camera 0 is not available because camera is in use Perhaps how to solve this problem?

ANDROID 11
Ionic Framework               : @ionic/angular 5.9.1
   @angular-devkit/build-angular : 12.1.4
   @angular-devkit/schematics    : 12.1.4
   @angular/cli                  : 12.1.4
   @ionic/angular-toolkit        : 4.0.0

Capacitor:

   Capacitor CLI      : 3.3.4
   @capacitor/android : 3.3.4
   @capacitor/core    : 3.3.4
EYALIN commented 1 year ago

@martrix78 i fixed it in the new forked plugin https://github.com/EYALIN/community-cordova-plugin-flashlight