ngCordova中的BarcodeScanner插件在Android 6中不起作用 [英] The BarcodeScanner plugin in ngCordova doesnt work in Android 6

查看:238
本文介绍了ngCordova中的BarcodeScanner插件在Android 6中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ionic Framework进行开发.barcodeScanner插件(ngCordova)不适用于最新版本的Android。
我怀疑这个版本的插件没有更新。
你们有没有找到解决方案?谢谢。

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.

推荐答案

Samuel Paredes,Android 6(M)有很多变化,主要是运行时权限,所以我们需要条形码扫描仪的相机,但该插件尚未更新,所以我们需要手动上相机许可。

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

这篇关于ngCordova中的BarcodeScanner插件在Android 6中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆