Can we integrate the flashlight with barcode reader in cordova

  • 2
  • Question
  • Updated 5 years ago
  • Doesn't Need an Answer
Am getting problem with flash light..
while am opening my app developing capture qr code along with flash light
when i click on capture button flash light is working but camera is n't working ..it's throwing error like "sorry the android camera encountered a problem .you may need to restart device
Photo of Madhu Martha

Madhu Martha

  • 7 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 2
Photo of Eddy Verbruggen

Eddy Verbruggen, Champion

  • 375 Posts
  • 86 Reply Likes
You can't use the Flashlight plugin with the BarcodeScanner plugin. On Android you can however trigger the flashlight during scanning by pressing the volume up button.
Photo of Madhu Martha

Madhu Martha

  • 7 Posts
  • 0 Reply Likes
can you share the source code for flash light during scanning by pressing the volume up button
Photo of Eddy Verbruggen

Eddy Verbruggen, Champion

  • 375 Posts
  • 86 Reply Likes
You don't need to tell the plugin you want to use that feature; just press the button on Android while scanning..
Photo of Madhu Martha

Madhu Martha

  • 7 Posts
  • 0 Reply Likes
thank you so much Eddy Verbruggen..
Photo of Senthilkumar Rajendiran

Senthilkumar Rajendiran

  • 1 Post
  • 0 Reply Likes
Hi Eddy Verbruggen:

is there any other way to switch on flashlight when scanner opened??