Ionic Framework で開発しています。バーコード スキャナー プラグイン (ngCordova) は、最新バージョンの Android では機能しません。プラグインがこのバージョン用に更新されていないと思われます。解決策を見つけた人はいますか?ありがとう。
5 に答える
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
同じエラーが発生しました。Github の担当者がプラグインをフォークして修正しました。こちらをご覧ください。
基本的に、現在持っているバーコード スキャナー プラグインを削除し、次のように新しいプラグインを追加します。
cordova plugin add https://github.com/jrontend/phonegap-plugin-barcodescanner
まったく同じように機能します。
この問題があります: 申し訳ありませんが、Android カメラで問題が発生しました。デバイスの再起動が必要になる場合があります