Search code examples
cordova-pluginsionic4

Ionic Native Camera in browser


I have an ionic app where i use it to scan a bar/qr code. It's working fine in browser and android itself, but how can i open the camera while accessing it using android browser?

I use phonegap-barcodescanner and cordova


Solution

  • Cordova plugin is not available for the browser. Cordova plugin is something which communicates with native components of mobile phone e.g. camera. it's not possible to access camera using phonegap-barcode scanner in the android browser. I will recommend instead of PhoneGap barcode scanner use ngx-barcode-scanner

    Link of sample project with demo: ngx-scanner