Hi everyone,
I have been trying to integrate a QR-Code scanner on a Meteor app. The camera works fine when I run it over the browser but won’t work when its packaged into an APK. I have tried several packages such as https://github.com/hitchcott/meteor-qr-code-scanner, and also the source code from “https://github.com/xr0master/qrScanner”.
I get the following error on the terminal when i run the app using: "meteor run android-device --mobile-server https:serverdoman.com":`
\E chromium: [ERROR:web_contents_delegate.cc(197)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.
I have tried adding a plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="me.dispatch.crosswalk-permissions"
version="0.1">
<name>Cordova Crosswalk Permissions</name>
<license>Apache 2.0 License</license>
<author>Dispatch</author>
<description>
Request the necessary crosswalk permissions on Android for a Cordova project.
</description>
<info>
This plugin replaces the need for adding permisions to the AndroidManifest.xml
file when using Crosswalk with Cordova.
</info>
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECORD_VIDEO" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT" />
<uses-feature android:name="android.hardware.Camera"/>
</config-file>
</platform>
</plugin>
Thank you so much for your help, I appreciate it!
I am ruing Meteor version 1.61 on Ubuntu 16.04.