Phonegap BarcodeScanner use of Front Camera


#1

I am currently using the “phonegap-plugin-barcodescanner” and it works for me perfectly. As some new features of the project appeared i need to use the front camera of the Android device (not need solution for ios, wp etc). I don’t mind if the app uses the front camera by default or i have to switch between the 2 cameras.

I would like also to inform you that despite editing the plugin.xml, AndroidManifest.xml and BarcodeScanner.java files nothing changed. The <uses-feature android:name="android.hardware.camera2.front" android:required="true" /> or the <uses-feature android:name="android.hardware.camera.front" android:required="true" /> doesn’t do the job even if i completely delete the <uses-feature android:name="android.hardware.camera" android:required="true" /> feature.

Any help, advice or documentation is accepted!!!

Thanks in advance!