Keeping flashlight on, while using camera to scan barcode

Hi, iam developing an app, where i scan barcodes form tickets with mobile, and then check if they are valid or not. Scanning is much faster, with good light, so i added a button, which can switch flashlight on/off. The problem is, that when i want to scan the bar code, app switches to camera and turns flashlight off. How can i keep flashlight on permanently, even when i switch to camera? Iam using ionic native plugins - BarcodeScanner and Flashlight.

Refer to this:

It has the options to turn on/off the flash led.

Great, thx for answer. And my fault that i didnt notice it :slight_smile: