1 Reply Latest reply on Aug 3, 2016 7:01 AM by VectorP

    I had problems with cli 6.3.0 for iOS.

    ninhop168200

      <?xml version='1.0' encoding='utf-8'?>

      <widget id="com.foldercard.ninho3"

      version="1.0.1"

      xmlns="http://www.w3.org/ns/widgets"

      xmlns:gap="http://phonegap.com/ns/1.0">

          <name>Folder Card</name>

          <description>

              Cartão Inteligente.

          </description>

           <author email="bernardo.pulla@hotmail.com" href="http://foldercard.com.br">

              Folder Card

          </author>

          <content src="index.html" />

       

        <feature name="InAppBrowser">

        <param name="ios-package" value="CDVInAppBrowser" />

        </feature>

       

        <feature name = "PushPlugin">

        <param name = "ios-package" value="PushPlugin" />

        </feature>

       

          <feature name="BarcodeScanner">

            <param name="ios-package" value="CDVBarcodeScanner" />

          </feature>

       

        <feature name=" Camera ">

        <param name="ios-package" value="CDVCamera" />

        </feature>

       

        <icon gap:platform="ios" height="57" src="res/icon/ios/icon-57.png" width="57" />

          <icon gap:platform="ios" height="72" src="res/icon/ios/icon-72.png" width="72" />

          <icon gap:platform="ios" height="114" src="res/icon/ios/icon-57-2x.png" width="114" />

          <icon gap:platform="ios" height="144" src="res/icon/ios/icon-72-2x.png" width="144" />

       

          <gap:splash gap:platform="ios" height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" />

          <gap:splash gap:platform="ios" height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" />

          <gap:splash gap:platform="ios" height="1136" src="res/screen/ios/screen-iphone-portrait-568h-2x.png" width="640" />

          <gap:splash gap:platform="ios" height="568" src="res/screen/ios/screen-iphone-portrait-568h.png" width="320" /> 

          <gap:splash gap:platform="ios" height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" />

          <gap:splash gap:platform="ios" height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" />

       

        <gap:splash gap:platform="ios" height="120" src="res/screen/ios/screen-iphone-portrait.png" width="120" />

        <gap:splash gap:platform="ios" height="120" src="res/screen/ios/screen-ipod-portrait.png" width="120" />

        <gap:splash gap:platform="ios" height="76" src="res/screen/ios/screen-ipad-portrait.png" width="76" />

        <gap:splash gap:platform="ios" height="152" src="res/screen/ios/screen-ipad-portrait.png" width="152" />

       

        <preference name="permissions" value="none" />

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

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

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

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

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

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

          <preference name="stay-in-webview" value="false" />

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

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

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

          <preference name="show-splash-screen-spinner" value="true" />

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

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

          <preference name="SplashScreen" value="screen" />

        <preference name="SplashSreenDelay" value="4000" />

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

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

          <!--<preference name="phonegap-version" value="3.7.0" />-->

       

          <preference name="deployment-target" value="6.1" />

       

       

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

          <preference name="UIWebViewBounce" value="false" />

       

       

        <gap:plugin name="org.apache.cordova.battery-status" />

          <gap:plugin name="org.apache.cordova.camera" />

          <gap:plugin name="org.apache.cordova.media-capture" />

          <gap:plugin name="org.apache.cordova.console" />

          <gap:plugin name="org.apache.cordova.contacts" />

          <gap:plugin name="org.apache.cordova.device" />

          <gap:plugin name="org.apache.cordova.device-motion" />

          <gap:plugin name="org.apache.cordova.device-orientation" />

          <gap:plugin name="org.apache.cordova.dialogs" />

          <gap:plugin name="org.apache.cordova.file" />

          <gap:plugin name="org.apache.cordova.file-transfer" />

          <gap:plugin name="org.apache.cordova.geolocation" />

          <gap:plugin name="org.apache.cordova.globalization" />

          <gap:plugin name="org.apache.cordova.inappbrowser" />

       

       

          <gap:plugin name="org.apache.cordova.media" />

          <gap:plugin name="org.apache.cordova.network-information" />

          <gap:plugin name="org.apache.cordova.splashscreen" />

          <gap:plugin name="org.apache.cordova.vibration" />

       

       

        <gap:plugin name="com.phonegap.plugins.pushplugin" />

        <gap:plugin name="com.phonegap.plugins.barcodescanner"/>

       

        //<icon src="icon.png" />

       

        <gap:splash src="screen-hdpi-portrait.png" />

       

        <feature name="NetworkStatus">

            <param name="ios-package" value="CDVConnection" />

          </feature>

       

       

          <access origin="*"/>

       

          <plugin name="cordova-plugin-whitelist" version="1" />

          <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="ios">

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

        <allow-intent href="itms-apps:*" />

        </platform> 

       

        <!-- <platform name="ios">

         <preference name="phonegap-version" value="3.9.1" />

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

        </platform> -->

       

      </widget>

        • 1. Re: I had problems with cli 6.3.0 for iOS.
          VectorP Level 4

          You have a bunch of problems, yes:

           

          1. Don't use feature elements with PGB. Remove them

          2. Don't use old, deprecated plugins from the pgb repo. Replace them by the latest versions of plugins from npm. Be aware that they are named differently

          3. You have set orientation to portrait, yet you specify a landscap splashscreen. Why?

          4. You specify the file plugin, although you already have the file-transfer plgin, which has the file plugin included.

          5. You should refrain from using the gap: namespace. See the PGB Docs for the proper syntax without 'gap:'

          6. You are missing the larger splashes for iPhone6(+). See the Apple documentation abut 'launch images'

          7. You have version=1 for the whitelist plugin. That version doesn't exist.

          1 person found this helpful