2017-03-08 58 views
0

時,這是我的config.xml爲PhoneGap的與JQMPhoneGap的權限沒有被要求安裝APK

,但是當我用土坯建編譯後安裝APK它要求我只對GPS &錄音。不適用於相機等,那麼相機功能當然不適用於我的APP。有任何想法嗎?

<plugin name="cordova-plugin-geolocation" />  
    <plugin name="cordova-plugin-camera" /> 
    <plugin name="cordova-plugin-file" /> 
    <plugin name="cordova-plugin-media" /> 
    <plugin name="cordova-plugin-media-capture" /> 
    <plugin name="cordova-plugin-dialogs" />  
    <plugin name="cordova-plugin-file-transfer" /> 
    <plugin name="cordova-plugin-whitelist" version="1" /> 

    <preference name="permissions"    value="none"/> 
    <preference name="stay-in-webview"   value="false" /> 
    <preference name="InAppBrowserStorageEnabled" value="true"/> 

    <feature name="http://api.phonegap.com/1.0/camera"/> 
    <feature name="http://api.phonegap.com/1.0/file"/> 
    <feature name="http://api.phonegap.com/1.0/geolocation"/> 
    <feature name="http://api.phonegap.com/1.0/media"/> 
    <feature name="http://api.phonegap.com/1.0/network"/> 
    <feature name="http://api.phonegap.com/1.0/notification"/> 

    <icon src="icon.png" /> 

    <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:*" /> 
    <platform name="android"> 
     <allow-intent href="market:*" /> 
    </platform> 
    <platform name="ios"> 
     <allow-intent href="itms:*" /> 
     <allow-intent href="itms-apps:*" /> 
    </platform> 

回答

0

請務必包括源= 「故宮」在你的標籤,像這樣結束:

<plugin name="cordova-plugin-dialogs" source="npm"/> 

Ĵ