2 questions about Phonegap and IOS

0 favourites
  • 2 posts
  • Hi!

    I got 2 questions about exporting to IOS using phonegap. I've been using Cocoon but since it seems like they died and don't update anymore I've decided to use phonegap.

    Tried it first time today and it was really simple and performance was nice!

    There are 2 things I was wondering about though and maybe someone who has been using phonegap longer can answer. :)

    1. Is this the correct way to add splash and icons in config.xml? Found this on phonegaps site: docs.phonegap.com/phonegap-build/configuring/icons-and-splash

    But there were other instructions too that looked different.

    We are using cordova cli 6.5.0, right? When I did the following the icons and splash worked great on my test device (iphone 5 - ios 10.3). But will it also work on newer iphones? It only says "iphone" & "iPhone 6 / 6+" in my config. Do I have to add something else for Iphone 7 and newer?

    This is how I added icons

    <!-- iPhone 6 / 6+ -->

    <icon src="icon-60@3x.png" platform="ios" width="180" height="180" />

    <!-- iPhone / iPod Touch -->

    <icon src="icon-60.png" platform="ios" width="60" height="60" />

    <icon src="icon-60@2x.png" platform="ios" width="120" height="120" />

    <!-- iPad -->

    <icon src="icon-76.png" platform="ios" width="76" height="76" />

    <icon src="icon-76@2x.png" platform="ios" width="152" height="152" />

    <icon src="icon-83.5@2x.png" platform="ios" width="167" height="167" />

    <!-- Settings Icon -->

    <icon src="icon-small.png" platform="ios" width="29" height="29" />

    <icon src="icon-small@2x.png" platform="ios" width="58" height="58" />

    <icon src="icon-small@3x.png" platform="ios" width="87" height="87" />

    <!-- Spotlight Icon -->

    <icon src="icon-40.png" platform="ios" width="40" height="40" />

    <icon src="icon-40@2x.png" platform="ios" width="80" height="80" />

    <icon src="icon-40@3x.png" platform="ios" width="120" height="120" />

    This is how I added splash

    <!-- iPhone and iPod touch -->

    <splash src="Default.png" platform="ios" width="320" height="480" />

    <splash src="Default@2x.png" platform="ios" width="640" height="960" />

    <!-- iPhone 5 / iPod Touch (5th Generation) -->

    <splash src="Default-568h@2x.png" platform="ios" width="640" height="1136" />

    <!-- iPhone 6 -->

    <splash src="Default-667h@2x.png" platform="ios" width="750" height="1334" />

    <splash src="Default-Portrait-736h@3x.png" platform="ios" width="1242" height="2208" />

    <splash src="Default-Landscape-736h@3x.png" platform="ios" width="2208" height="1242" />

    <!-- iPad -->

    <splash src="Default-Portrait.png" platform="ios" width="768" height="1024" />

    <splash src="Default-Landscape.png" platform="ios" width="1024" height="768" />

    <!-- Retina iPad -->

    <splash src="Default-Portrait@2x.png" platform="ios" width="1536" height="2048" />

    <splash src="Default-Landscape@2x.png" platform="ios" width="2048" height="1536" />

    Is this how you do it? I did get a warning about a missing 1024x1024 icon when uploading to testflight.

    2 My app did not start at first. It only logged me into game center but newer went from loader layout to the game. I then did some research and replaced the "cordova-plugin-wkwebview" with "cordova-plugin-wkwebview-ionic-xhr" and everything worked fine. Is this something you always have to do in phonegap?

    Just thought I would ask here in case someone could clarify a little bit.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi boulerzzz!

    I tried to build an iOS app with PhoneGap yesterday, and this is what the error log said:

    After much discussion and analysis of the market, we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20.

    Can you please help me out? What am I doing wrong?

    ---------------------------------

    Build Date: 2018-08-20 17:59:20 -0700

    --------------------------------------------------------------------------------

    PLUGIN OUTPUT

    --------------------------------------------------------------------------------

    Fetching plugin "cordova-custom-config" via npm

    Installing "cordova-custom-config" at "5.0.2" for ios

    Fetching plugin "cordova-plugin-ad-admob" via npm

    Installing "cordova-plugin-ad-admob" at "1.0.118" for ios

    Fetching plugin "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" via git clone

    Using shallow clone

    Repository "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" checked out to git ref "master" at "b22949d".

    Installing "cordova-plugin-ad-admob-sdk" at "1.0.36" for ios

    Fetching plugin "cordova-plugin-crosswalk-webview" via npm

    Installing "cordova-plugin-crosswalk-webview" at "2.4.0" for ios

    After much discussion and analysis of the market, we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20.

    So the minSdkVersion of Cordova project is configured to 16 by default.

    Fetching plugin "cordova-plugin-file" via npm

    Installing "cordova-plugin-file" at "6.0.1" for ios

    Fetching plugin "cordova-plugin-media" via npm

    Installing "cordova-plugin-media" at "5.0.2" for ios

    Plugin dependency "cordova-plugin-file@6.0.1" already fetched, using that version.

    Dependent plugin "cordova-plugin-file" already installed on ios.

    Fetching plugin "cordova-plugin-statusbar" via npm

    Installing "cordova-plugin-statusbar" at "2.4.2" for ios

    Fetching plugin "cordova-plugin-whitelist" via npm

    Installing "cordova-plugin-whitelist" at "1.3.3" for ios

    Fetching plugin "cordova-plugin-wkwebview-engine" via npm

    Installing "cordova-plugin-wkwebview-engine" at "1.1.4" for ios

    Fetching plugin "https://github.com/cranberrygame/cordova-plugin-ad-admob" via git clone

    Using shallow clone

    Repository "https://github.com/cranberrygame/cordova-plugin-ad-admob" checked out to git ref "master" at "930b17f".

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/LICENSE

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/LICENSE

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/README.md

    skipping existing file: ad_unit1.png

    skipping existing file: ad_unit2.png

    skipping existing file: ad_unit3.png

    skipping existing file: ad_unit4.png

    skipping existing file: ad_unit5.png

    skipping existing file: ad_unit6.png

    skipping existing file: ad_unit7.png

    skipping existing file: ad_unit8.png

    skipping existing file: admob_mediation1.png

    skipping existing file: admob_mediation2.png

    skipping existing file: admob_mediation3.png

    skipping existing file: admob_mediation4.png

    skipping existing file: admob_mediation5.png

    skipping existing file: admob_mediation6.png

    skipping existing file: admob_mediation7.png

    skipping existing file: CordovaApp-debug.apk

    skipping existing file: ios_submit_for_review_survey.png

    skipping existing file: index.html

    skipping existing file: index.html

    skipping existing file: index.html

    skipping existing file: index.html

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/LICENSE

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/README.md

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/package.json

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/LICENSE

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/README.md

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/package.json

    cp: dest file already exists: /private/project/cordova/plugins/cordova-plugin-ad-admob/plugin.xml

    skipping existing file: AdMobOverlap.java

    skipping existing file: AdMobPlugin.java

    skipping existing file: AdMobSplit.java

    skipping existing file: AdMobOverlap.h

    skipping existing file: AdMobOverlap.m

    skipping existing file: AdMobPlugin.h

    skipping existing file: AdMobPlugin.m

    skipping existing file: AdMobSplit.h

    skipping existing file: AdMobSplit.m

    skipping existing file: windows.zip

    skipping existing file: AdMobOverlap.cs

    skipping existing file: AdMobPlugin.cs

    skipping existing file: AdMobSplit.cs

    skipping existing file: Silverlight.Md5.dll

    skipping existing file: tests.js

    skipping existing file: admob.js

    Plugin "cordova-plugin-ad-admob" already installed on ios.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)