Samuel Paredes
Samuel Paredes

Reputation: 131

The BarcodeScanner plugin in ngCordova doesnt work in Android 6

I'm developing in Ionic Framework.The barcodeScanner plugin(ngCordova) doesn't work for the newest version of Android. I suspect the plugin is not updated for this version. Any of you have found a solution? Thanks.

Upvotes: 0

Views: 835

Answers (5)

Sammy I.
Sammy I.

Reputation: 2735

Same error happened to me. A guy on Github forked the plug-in and fixed it, take a look here.

basically, remove the barcode scanner plugin you have right now and add the new one like this:

cordova plugin add https://github.com/jrontend/phonegap-plugin-barcodescanner

It works exactly the same way.

Upvotes: 0

user3127438
user3127438

Reputation: 47

Droid Tech, will this be resolved in the near future? Is there some way to monitor or to get a notification when this bug is solved?

Upvotes: 0

Samuel Paredes
Samuel Paredes

Reputation: 131

I have this problem: Sorry, the android camera encountered a problem. You may need to restar the device

https://i.sstatic.net/0nHW3.png

Upvotes: 0

Malo Degachi
Malo Degachi

Reputation: 179

We have this problem too. To solve it we have done this : ionic platform add [email protected] and it solve the problem

Upvotes: 1

A-Droid Tech
A-Droid Tech

Reputation: 2321

Samuel Paredes, There is many change in Android 6(M) , the main is runtime permissions, so we need the camera for the barcode scanner , but the plugin is not yet updated for that so we need to On the Camera permisson for the application manuully.

Setting >> APP manager >> Your App >> Permissions >>Camera >> 

Please enable the camera permission from there. Hope it will help you

Upvotes: 1

Related Questions