2017-03-07 26 views
0

我一直在與科爾多瓦和離子使用角js建設一個應用程序。當我將項目complile到android一切都很好,但對於iOS我無法連接任何東西。科爾多瓦離子不能連接到任何互聯網服務

我試圖登錄到firebase數據庫,以及交換一些HTTP請求。再次,所有在Android上正常工作。

這裏是我的config.xml:

<?xml version='1.0' encoding='utf-8'?> 
<widget id="private.private.private" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> 
    <name>Puurs 725</name> 
    <description>An awesome Ionic/Cordova app.</description> 
    <author email="[email protected]" href="http://ionicframework.com/">Ionic Framework Team</author> 
    <content src="index.html" /> 
    <access origin="*" /> 
    <allow-navigation href="http://ionic.local/*" /> 
    <allow-intent href="http://*/*" /> 
    <allow-intent href="https://*/*" /> 
    <allow-intent href="tel:*" /> 
    <allow-intent href="sms:*" /> 
    <allow-intent href="mailto:*" /> 
    <allow-intent href="geo:*" /> 
    <allow-navigation href="*://*youtube.com" /> 
    <allow-navigation href="*" /> 
    <platform name="android"> 
     <allow-intent href="market:*" /> 
    </platform> 
    <platform name="ios"> 
     <allow-intent href="itms:*" /> 
     <allow-intent href="itms-apps:*" /> 
    </platform> 
    <preference name="webviewbounce" value="false" /> 
    <preference name="UIWebViewBounce" value="false" /> 
    <preference name="DisallowOverscroll" value="true" /> 
    <preference name="android-minSdkVersion" value="16" /> 
    <preference name="BackupWebStorage" value="none" /> 
    <preference name="SplashMaintainAspectRatio" value="true" /> 
    <preference name="FadeSplashScreenDuration" value="300" /> 
    <preference name="SplashShowOnlyFirstTime" value="false" /> 
    <feature name="StatusBar"> 
     <param name="ios-package" onload="true" value="CDVStatusBar" /> 
    </feature> 
    <plugin name="ionic-plugin-keyboard" spec="~2.2.1" /> 
    <plugin name="cordova-plugin-whitelist" spec="1.3.1" /> 
    <plugin name="cordova-plugin-console" spec="1.0.5" /> 
    <plugin name="cordova-plugin-statusbar" spec="2.2.1" /> 
    <plugin name="cordova-plugin-device" spec="1.1.4" /> 
    <plugin name="cordova-plugin-splashscreen" spec="~4.0.1" /> 
    <plugin name="NetworkStatus" value="CDVConnection" /> 
    <plugin name="cordova-plugin-googleplus" spec="~5.1.1"> 
     <variable name="REVERSED_CLIENT_ID" value="com.googleusercontent.apps.lotsofprivatenumbers" /> 
    </plugin> 
</widget> 

有趣的事情是,這應該是工作。但我無意中覆蓋了我的index.html文件。在那裏有我的索引元數據我有:

<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"> 

給任何人打鈴?

回答

0

嗯,我學會了如何將運行應用程序的ipad連接到我的mac,調試safari控制檯(此功能太棒了),並發現javascript錯誤阻止了進一步的執行。

更具體的說,Safari不支持Object.values。