Barcode Scanner Unable to detect Camera

Hello Guys, Does anyone have ideas on how to implement barcode scanner  ? I need to implement Barcode Scanner in Hybrid  App. I tried  Barcode Scanner widget but the app says "Unable to detect camera”. Some answers says I need to config Phone Gap/Cordova, but Phone Gap is no longer available. Thank you  Regards, Bhanu Chauhan
1 answers

How did you test this?
The barcode scanner will only work if you do a hybrid app built and enable access to the camera there.

Regards, fabian