8 Replies Latest reply on Aug 6, 2016 7:45 AM by VectorP

    new version now has errors


      Hi guys really, need some help with this...

      Was using phone gap build having no problems at all everything was running perfect.

      Updated the app to the latest version - NOW my XML file seems to have a load of errors


      Can anyone please point me in the right direction

      kindest regards

        • 1. Re: new version now has errors
          VectorP Level 4

          Would help if you posted your config and the error messages.

          • 2. Re: new version now has errors
            REASON Level 1

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

            <widget id="com.worldsbeststripclubs.findaclub" version="1.0.3" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">


                <description>Worlds Best Strip Clubs, find a strip club near you</description>

                <author email="info@worldsbeststripclubs.com" href="http://worldsbeststripclubs.com">WBSC Team</author>

                <content src="index.html" />

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

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

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

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

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

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

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

                <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="android-minSdkVersion" value="14" />

                <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" />

                <plugin name="Geolocation" value="CDVLocation" />

                <icon src="icon.png" />

                <icon gap:platform="android" gap:qualifier="ldpi" src="www/res/icon/android/icon-36-ldpi.png" />

                <icon gap:platform="android" gap:qualifier="mdpi" src="www/res/icon/android/icon-48-mdpi.png" />

                <icon gap:platform="android" gap:qualifier="hdpi" src="www/res/icon/android/icon-72-hdpi.png" />

                <icon gap:platform="android" gap:qualifier="xhdpi" src="www/res/icon/android/icon-96-xhdpi.png" />

                <icon gap:platform="blackberry" src="www/res/icon/blackberry/icon-80.png" />

                <icon gap:platform="blackberry" gap:state="hover" src="www/res/icon/blackberry/icon-80.png" />

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

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

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

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

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

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

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

                <icon gap:platform="webos" src="www/res/icon/webos/icon-64.png" />

                <icon gap:platform="winphone" src="www/res/icon/windows-phone/icon-48.png" />

                <icon gap:platform="winphone" gap:role="background" src="www/res/icon/windows-phone/icon-173-tile.png" />

                <gap:splash gap:platform="android" gap:qualifier="port-ldpi" src="www/res/screen/android/screen-ldpi-portrait.png" />

                <gap:splash gap:platform="android" gap:qualifier="port-mdpi" src="www/res/screen/android/screen-mdpi-portrait.png" />

                <gap:splash gap:platform="android" gap:qualifier="port-hdpi" src="www/res/screen/android/screen-hdpi-portrait.png" />

                <gap:splash gap:platform="android" gap:qualifier="port-xhdpi" src="www/res/screen/android/screen-xhdpi-portrait.png" />

                <gap:splash gap:platform="blackberry" src="www/res/screen/blackberry/screen-225.png" />

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

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

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

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

                <gap:splash gap:platform="winphone" src="www/res/screen/windows-phone/screen-portrait.jpg" />

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

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


                <platform name="ios">

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

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


                <engine name="ios" spec="~4.0.1" />

                <engine name="android" spec="~5.1.1" />


            • 4. Re: new version now has errors
              VectorP Level 4

              Well, that's neither your config posted, nor is it 'a load of errors'.

              But, if you'd rather make me use my crystal bowl, I would guess that you are using old, deprecated plugins from the now abandoned pgb repo.

              • 5. Re: new version now has errors
                REASON Level 1

                it is being moderated! don't know why

                • 6. Re: new version now has errors
                  VectorP Level 4

                  OK. Sorry. Your config didn't display when I replied.


                  In this case I should have written:


                  You are using old, deprecated plugins from the now abandoned pgb repo.

                  Specify the latest version of the plugins from npm. Be aware that they are named differently (usually something like 'cordova-plugin-xxxx')

                  And you have a bunch of them. Do you really need them all?


                  BTW: it would be wise to use the syntax without the :gap namespace, now. See the PGB Docs.

                  • 7. Re: new version now has errors
                    REASON Level 1

                    okay thanks for the, do the preferences still work i.e.: for orientation etc??

                    I'll update the xml - do they not supply an example?


                    thanks again

                    • 8. Re: new version now has errors
                      VectorP Level 4

                      Preferences will 'work'.


                      But there are several other things you may want to change:

                      1. Larger icons and splashes (for iphone6 and 6+ and for iPadPro) are missing

                      2. Dimensions xxhdpi and xxxhdpi for Android are missing

                      3. You have specifications for blackberry, but that OS isn't built by PGB

                      You have specifications for winphone, but you have excluded that OS from Build

                      4. You want to add the statusbar plugin for iPad, otherwise it won't scale well

                      5. You have whitelist plugin version=1, which doesn't exist


                      Examples for plugin specifications can be found in the PGB Docs.

                      Find the proper plugins here: http://cordova.apache.org/plugins/

                      Plugin Search - Apache Cordova