科尔多瓦相机插件问题

时间:2018-10-30 14:30:09

标签: android ios

当我们使用此代码通过APK在手机中运行时,该代码将无法正常运行,就像仅已在移动设备中的现有图片或在其上反映的现有图片选项上传一样。相机点击上传不反映在那里。但是,当我们在任何浏览器中使用此选项时,都会反映“相机”单击选项。代码在这里。因此,请告诉我一个真正知道此代码有什么问题的人。 创建此APK时,我们面临的另一件事也意味着摄像机上传的许可也被成功接受。但是在生成APK并在我们的手机中之后,我们检查了此APK详细信息,“相机”权限选项未激活。

<?xml version="1.0" encoding="UTF-8"?>

<widget version="1.0" id="com.softserv.carboos" xmlns:gap="http://phonegap.com/ns/1.0" xmlns="http://www.w3.org/ns/widgets">

<name>carboos</name>

<author>Softserv</author>

<gap:platform name="android"/>

<preference name="phonegap-version" value="cli-7.1.0"/>

<preference name="orientation" value="default"/>

<preference name="target-device" value="universal"/>

<preference name="fullscreen" value="true"/>

<preference name="prerendered-icon" value="true"/>

<preference name="ios-statusbarstyle" value="black-opaque"/>

<preference name="detect-data-types" value="true"/>

<preference name="exit-on-suspend" value="false"/>

<preference name="auto-hide-splash-screen" value="true"/>

<preference name="disable-cursor" value="false"/>

<preference name="android-installLocation" value="auto"/>

<plugin name="cordova-plugin-contacts" spec="~3.0.1"/>

<plugin name="cordova-plugin-whitelist" spec="~1.3.3"/>

<plugin name="https://github.com/apache/cordova-plugin-camera.git"/>

<plugin name="https://github.com/apache/cordova-plugin-camera#cameradirection--enum.git"/>

<plugin name="cordova-plugin-geolocation" spec="2.0.0"/>

<access origin="*"/>

<allow-intent href="http://*/*"/>

<allow-intent href="https://*/*"/>

<allow-intent href="tel:*"/>

<allow-intent href="sms:*"/>

<allow-intent href="mailto:*"/>

<allow-intent href="geo:*"/>

<icon src="softserv_log.png"/>

</widget>

0 个答案:

没有答案