0
これはconfig.xmlの設定に関する一般的な質問です。私は少し間違っているバージョンとどのドキュメントが正しい/古い間です。Phonegap Build(cli-5.2.0)プラグイン - このconfig.xmlは正しいですか?
Webアプリケーション用にphonegapビルドを使用しています。リダイレクトを伴う単純なindex.html。
name="org.apache.cordova..."
name="cordova.plugin..."
しかし、私はアプリをインストールするたびに、アクセス権が表示されないのプラグインで
<plugin...
<gap:plugin..
と様々な名前の種類: 私はの様々な構成をドキュメントを読み、そして試してみましたリスト内の私がphonegap build 3.XXを使用していたときに要求されていたアクセス権。ここに私のconfig.xml
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.whatever.testing123"
versionCode = "5"
version = "1.0.4" >
<name>Hey is this thing on?</name>
<description>
Checking for permissions
</description>
<author href="https://www.testing123.com" email="[email protected]">
Testing123
</author>
<gap:platform name="ios" />
<gap:platform name="android" />
<gap:platform name="winphone" />
<preference name="orientation" value="portrait" />
<preference name="phonegap-version" value="cli-5.2.0" />
<preference name="fullscreen" value="true" />
<preference name="loadUrlTimeoutValue" value="700000" />
<preference name="LoadingDialog" value="Please wait, the app is loading"/>
<preference name="AllowInlineMediaPlayback" value="true"/>
<preference name="SplashScreenDelay" value="7000"/>
<preference name="KeepRunning" value="true"/>
<icon src="res/icon/android-icon-36x36.png" gap:platform="android" gap:qualifier="ldpi" />
<icon src="res/icon/android-icon-48x48.png" gap:platform="android" gap:qualifier="mdpi" />
<icon src="res/icon/android-icon-72x72.png" gap:platform="android" gap:qualifier="hdpi" />
<icon src="res/icon/android-icon-96x96.png" gap:platform="android" gap:qualifier="xhdpi" />
<icon src="res/icon/apple-icon-57x57.png" gap:platform="ios" width="57" height="57" />
<icon src="res/icon/apple-icon-72x72.png" gap:platform="ios" width="72" height="72" />
<icon src="res/icon/apple-icon-76x76.png" gap:platform="ios" width="76" height="76" />
<icon src="res/icon/apple-icon-114x114.png" gap:platform="ios" width="114" height="114" />
<icon src="res/icon/apple-icon-144x144.png" gap:platform="ios" width="144" height="144" />
<icon src="res/icon/apple-icon-120x120.png" gap:platform="ios" width="120" height="120" />
<icon src="res/icon/apple-icon-152x152.png" gap:platform="ios" width="152" height="152" />
<icon src="res/icon/android-icon-72x72.png" gap:platform="webos" />
<icon src="res/icon/android-icon-48x48.png" gap:platform="winphone" />
<icon src="res/icon/apple-icon-180x180.png" gap:platform="winphone" gap:role="background" />
<gap:splash src="res/screen/default.png" />
<gap:splash src="res/screen/default.png" gap:platform="android" gap:qualifier="port-ldpi" />
<gap:splash src="res/screen/mdpi.png" gap:platform="android" gap:qualifier="port-mdpi" />
<gap:splash src="res/screen/hdpi.png" gap:platform="android" gap:qualifier="port-hdpi" />
<gap:splash src="res/screen/xhdpi.png" gap:platform="android" gap:qualifier="port-xhdpi" />
<gap:splash src="res/screen/xxhdpi.png" gap:platform="android" gap:qualifier="port-xxhdpi" />
<gap:splash src="res/screen/xxxhdpi.png" gap:platform="android" gap:qualifier="port-xxxhdpi" />
<gap:splash src="res/screen/default.png" gap:platform="ios" width="320" height="480" />
<gap:splash src="res/screen/640x960.png" gap:platform="ios" width="640" height="960" />
<gap:splash src="res/screen/640x1136.png" gap:platform="ios" width="640" height="1136" />
<gap:splash src="res/screen/750x1334.png" gap:platform="ios" width="750" height="1334" />
<gap:splash src="res/screen/768x1024.png" gap:platform="ios" width="768" height="1024" />
<gap:splash src="res/screen/1242x2208.png" gap:platform="ios" width="1242" height="2208" />
<gap:splash src="res/screen/default.png" gap:platform="winphone" />
<gap:plugin name="cordova-plugin-camera" spec="0.3.6" source="npm" />
<gap:plugin name="cordova-plugin-media-capture" spec="1.0.1" source="npm" />
<gap:plugin name="cordova-plugin-device" source="npm" />
<gap:plugin name="cordova-plugin-device-orientation" source="npm" />
<gap:plugin name="cordova-plugin-device-motion" source="npm" />
<gap:plugin name="cordova-plugin-file" source="npm" />
<gap:plugin name="cordova-plugin-file" source="npm" />
<gap:plugin name="cordova-plugin-file-transfer" source="npm" />
<gap:plugin name="cordova-plugin-media" spec="0.2.16" source="npm" />
<gap:plugin name="cordova-plugin-inappbrowser" source="npm" />
<gap:plugin name="cordova-plugin-globalization" source="npm"/>
<gap:plugin name="cordova-plugin-dialogs" source="npm" />
<gap:plugin name="org.apache.cordova.splashscreen" source="npm" />
<gap:plugin name="cordova-plugin-vibration" spec="1.2.0" source="npm" />
<gap:plugin name="com.indigoway.cordova.whitelist.whitelistplugin" spec="1.1.1" source="pgb" />
<gap:plugin name="com.sharinglabs.cordova.plugin.cache" spec="1.0.0" source="pgb" />
<gap:plugin name="org.apache.cordova.statusbar" spec="0.1.4" source="pgb" />
<access origin="*" browserOnly="true" />
<allow-navigation href="*" />
<allow-intent href="*" />
</widget>
は大きな疑問が私のプラグインは、CLI-5.2.0用に正しく構成されており、アプリ中のプラグイン要求権限をインストールする必要があり、そうですか?
初めての使用で尋ねられますか? –
これらの特定のプラグインパーミッションは、最初の使用時(または新規インストール時)には尋ねられません。私は以前のphonegapのバージョンで使っていたように、音声のようないくつかの一般的なものを取得しますが、 "カメラ"や "振動"はありません。私は設定で何かを壊したと思う。 – apoji187