9 Replies Latest reply on May 31, 2018 2:43 PM by michaelh27303698

    Splash screen png not added in phonegap build but added when making build with cordova cli

    nikhilkk Level 1

      When building apk from cordova CLI by cordova run android, the splash screen is added in apk and showing properly in android device. But when I make build using this website my apk size reduces because splash screen png are not added in apk.

      Why is splash screen not included in my build when using this website to make apk? What am I doing wrong?

       

      Here is my config.xml file

       

       

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

       

      <widget android-versionCode="104025" id="com.m2.velexo" version="1.4.25" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">

         <name>Mobile App</name>

         <description>

      mobile application

         </description>

       

         <content src="index.html" />

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

         <preference name="android-minSdkVersion" value="14" />

         <preference name="AndroidLaunchMode" value="singleInstance" />


         <plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />

         <preference name="SplashScreen" value="www/res/screen/android" />

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

       

         <platform name="android">

         <icon density="ldpi" src="www/res/icon/android/drawable-ldpi-icon.png" />

         <icon density="mdpi" src="www/res/icon/android/drawable-mdpi-icon.png" />

         <icon density="hdpi" src="www/res/icon/android/drawable-hdpi-icon.png" />

         <icon density="xhdpi" src="www/res/icon/android/drawable-xhdpi-icon.png" />

         <icon density="xxhdpi" src="www/res/icon/android/drawable-xxhdpi-icon.png" />

         <icon density="xxxhdpi" src="www/res/icon/android/drawable-xxxhdpi-icon.png" />

         <splash density="land-ldpi" src="www/res/screen/android/drawable-land-ldpi-screen.png" />

         <splash density="land-mdpi" src="www/res/screen/android/drawable-land-mdpi-screen.png" />

         <splash density="land-hdpi" src="www/res/screen/android/drawable-land-hdpi-screen.png" />

         <splash density="land-xhdpi" src="www/res/screen/android/drawable-land-xhdpi-screen.png" />

         <splash density="land-xxhdpi" src="www/res/screen/android/drawable-land-xxhdpi-screen.png" />

         <splash density="land-xxxhdpi" src="www/res/screen/android/drawable-land-xxxhdpi-screen.png" />

         <splash density="port-ldpi" src="www/res/screen/android/drawable-port-ldpi-screen.png" />

         <splash density="port-mdpi" src="www/res/screen/android/drawable-port-mdpi-screen.png" />

         <splash density="port-hdpi" src="www/res/screen/android/drawable-port-hdpi-screen.png" />

         <splash density="port-xhdpi" src="www/res/screen/android/drawable-port-xhdpi-screen.png" />

         <splash density="port-xxhdpi" src="www/res/screen/android/drawable-port-xxhdpi-screen.png" />

         <splash density="port-xxxhdpi" src="www/res/screen/android/drawable-port-xxxhdpi-screen.png" />

         </platform>

         <platform name="ios">

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

         <icon height="114" platform="ios" src="www/res/icon/ios/icon@2x.png" width="114" />

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

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

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

         <icon height="100" platform="ios" src="www/res/icon/ios/icon-50@2x.png" width="100" />

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

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

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

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

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

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

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

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

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

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

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

         <splash height="1334" platform="ios" src="www/res/screen/ios/Default-667h.png" width="750" />

         <splash height="2208" platform="ios" src="www/res/screen/ios/Default-736h.png" width="1242" />

         <splash height="1242" platform="ios" src="www/res/screen/ios/Default-Landscape-736h.png" width="2208" />

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

         <splash height="768" platform="ios" src="www/res/screen/ios/Default-Landscape~ipad.png" width="1024" />

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

         <splash height="1024" platform="ios" src="www/res/screen/ios/Default-Portrait~ipad.png" width="768" />

         <splash height="960" platform="ios" src="www/res/screen/ios/Default@2x~iphone.png" width="640" />

         <splash height="480" platform="ios" src="www/res/screen/ios/Default~iphone.png" width="320" />

         </platform>

       

         <allow-navigation href="http://*/*" />

         <allow-navigation href="https://*/*" />

         <access launch-external="yes" origin="tel:*" />

         <access launch-external="yes" origin="geo:*" />

         <access launch-external="yes" origin="sms:*" />

         <access launch-external="yes" origin="mailto:*" />

         <access launch-external="yes" origin="file:*" />

       

         <plugin name="cordova-plugin-battery-status" spec="~1.2.4" />

         <plugin name="cordova-plugin-camera" spec="~2.4.1">

         <variable name="CAMERA_USAGE_DESCRIPTION" value=" " />

         <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value=" " />

         </plugin>

         <plugin name="cordova-plugin-compat" spec="~1.2.0" />

         <plugin name="cordova-plugin-device" spec="~1.1.6" />

         <plugin name="cordova-plugin-dialogs" spec="~1.3.3" />

         <plugin name="cordova-plugin-file" spec="~4.3.3" />

         <plugin name="cordova-plugin-file-transfer" spec="~1.6.3" />

         <plugin name="cordova-plugin-geolocation" spec="~2.4.3">

         <variable name="GEOLOCATION_USAGE_DESCRIPTION" value=" " />

         </plugin>

         <plugin name="cordova-plugin-globalization" spec="~1.0.7" />

         <plugin name="cordova-plugin-inappbrowser" spec="~1.7.2" />

         <plugin name="cordova-plugin-media-capture" spec="~1.4.3">

         <variable name="CAMERA_USAGE_DESCRIPTION" value=" " />

         <variable name="MICROPHONE_USAGE_DESCRIPTION" value=" " />

         <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value=" " />

         </plugin>

         <plugin name="cordova-plugin-network-information" spec="~1.3.3" />

         <plugin name="cordova-plugin-vibration" spec="~2.1.5" />

         <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />

         <plugin name="phonegap-plugin-push" spec="~2.1.0">

         <variable name="FCM_VERSION" value="11.0.1" />

         </plugin>

         <plugin name="cordova-plugin-badge" spec="^0.8.6" />

         <plugin name="cordova-universal-links-plugin" spec="^1.2.1" />

        

         <engine name="ios" spec="^4.5.2" />

         <engine name="android" spec="^6.3.0" />

      </widget>

        • 1. Re: Splash screen png not added in phonegap build but added when making build with cordova cli
          danielb99919729 Level 1

          I am facing the same issue and my status bar too is not working anymore

          • 2. Re: Splash screen png not added in phonegap build but added when making build with cordova cli
            albertoo74224114 Level 1

            I have the same problem! Any solution??

             

            It worked for me, but it stopped working

             

             

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

            <widget id="xx.xxx.xxx" version="1.0.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

              <name>Mis Talleres</name>

              <description>Mis talleres apps</description>

              <author email="xxx@xxx.com" href="http://www.xxx.com/">xxx</author>

              <content src="index.html" />

              <access origin="*" />

              <access origin="*.pushwoosh.com" />

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

              <icon density="ldpi" src="res/icons/android/drawable-ldpi-icon.png" />

              <icon density="mdpi" src="res/icons/android/drawable-mdpi-icon.png" />

              <icon density="hdpi" src="res/icons/android/drawable-hdpi-icon.png" />

              <icon density="xhdpi" src="res/icons/android/drawable-xhdpi-icon.png" />

              <icon density="xxhdpi" src="res/icons/android/drawable-xxhdpi-icon.png" />

              <icon density="xxxhdpi" src="res/icons/android/drawable-xxxhdpi-icon.png" />

             

              <splash src="res/screens/android/drawable-port-xhdpi-screen.png" />

              <splash density="land-ldpi" src="res/screens/android/drawable-land-ldpi-screen.png" />

              <splash density="land-mdpi" src="res/screens/android/drawable-land-mdpi-screen.png" />

              <splash density="land-hdpi" src="res/screens/android/drawable-land-hdpi-screen.png" />

              <splash density="land-xhdpi" src="res/screens/android/drawable-land-xhdpi-screen.png" />

              <splash density="land-xxhdpi" src="res/screens/android/drawable-land-xxhdpi-screen.png" />

              <splash density="land-xxxhdpi" src="res/screens/android/drawable-land-xxxhdpi-screen.png" />

              <splash density="port-ldpi" src="res/screens/android/drawable-port-ldpi-screen.png" />

              <splash density="port-mdpi" src="res/screens/android/drawable-port-mdpi-screen.png" />

              <splash density="port-hdpi" src="res/screens/android/drawable-port-hdpi-screen.png" />

              <splash density="port-xhdpi" src="res/screens/android/drawable-port-xhdpi-screen.png" />

              <splash density="port-xxhdpi" src="res/screens/android/drawable-port-xxhdpi-screen.png" />

              <splash density="port-xxxhdpi" src="res/screens/android/drawable-port-xxxhdpi-screen.png" />

              </platform>

              <platform name="ios">

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

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

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

              <icon height="1024" platform="ios" src="res/icons/ios/icon-1024.png" width="1024" />

              <icon height="57" platform="ios" src="res/icons/ios/icon.png" width="57" />

              <icon height="114" platform="ios" src="res/icons/ios/icon@2x.png" width="114" />

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

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

              <icon height="50" platform="ios" src="res/icons/ios/icon-50.png" width="50" />

              <icon height="100" platform="ios" src="res/icons/ios/icon-50@2x.png" width="100" />

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

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

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

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

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

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

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

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

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

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

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

              <splash height="1334" platform="ios" src="res/screens/ios/Default-667h.png" width="750" />

              <splash height="2208" platform="ios" src="res/screens/ios/Default-736h.png" width="1242" />

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

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

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

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

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

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

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

              </platform>

             

              <preference name="AndroidPersistentFileLocation" value="Compatibility" />

              <preference name="android-build-tool" value="gradle" />

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

              <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="SplashScreenBackgroundColor" value="0xffffff" />

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

              <preference name="loadUrlTimeoutValue" value="700000" />

              <preference name="SplashScreenDelay" value="300000" />

              <preference name="FadeSplashScreenDuration" value="750" />

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

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

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

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

              <preference name="AndroidLaunchMode" value="singleTask" />

              <feature name="StatusBar">

              <param name="ios-package" onload="true" value="CDVStatusBar" />

              </feature>

              <plugin name="cordova-plugin-device" spec="1.1.6" />

              <plugin name="cordova-plugin-console" spec="1.0.7" />

              <plugin name="cordova-plugin-whitelist" spec="1.3.2" />

              <plugin name="cordova-plugin-splashscreen" spec="4.0.3" />

              <plugin name="ionic-plugin-keyboard" spec="2.2.1" />

              <icon src="resources\android\icon\drawable-xhdpi-icon.png" />

              <plugin name="cordova-plugin-camera" spec="2.4.1">

              <variable name="CAMERA_USAGE_DESCRIPTION" value="xxx necesita acceder a tus fotos para poder cambiar la foto de tu perfil" />

              <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="xxx necesita acceder a tus fotos para poder cambiar la foto de tu perfil" />

              </plugin>

              <plugin name="cordova-plugin-datepicker" spec="0.9.3" />

              <plugin name="cordova-plugin-facebook4" spec="1.7.4">

              <variable name="APP_ID" value="xxx" />

              <variable name="APP_NAME" value="xxxx" />

              </plugin>

              <plugin name="cordova-plugin-x-socialsharing" spec="5.1.8" />

              <plugin name="cordova-plugin-statusbar" spec="2.2.3" />

              <plugin name="cordova-plugin-compat" spec="1.1.0" />

              <plugin name="cordova-plugin-geolocation" spec="2.4.3">

              <variable name="GEOLOCATION_USAGE_DESCRIPTION" value="xxxx necesita acceder a los mapas para mostrarte la forma de llegar a los talleres" />

              </plugin>

              <plugin name="cordova-plugin-call-number" spec="1.0.1" />

              <plugin name="pushwoosh-cordova-plugin" source="npm" version="7.0.6" />

              <plugin name="cordova-plugin-inappbrowser" spec="1.7.0" />

              <plugin name="cordova-plugin-screen-orientation" spec="2.0.1" />

              <plugin name="cordova-plugin-customurlscheme" source="npm" spec="4.3.0">

              <variable name="URL_SCHEME" value="xxx" />

              </plugin>

            </widget>

            • 5. Re: Splash screen png not added in phonegap build but added when making build with cordova cli
              albertoo74224114 Level 1

              I have upgraded to PGB 7.0.1 builder (2) and it works for me

              • 6. Re: Splash screen png not added in phonegap build but added when making build with cordova cli
                uniquethoughts Level 1

                but PGB 7.0.1 is not available at cloud building (build.phonegap.com)

                • 7. Re: Splash screen png not added in phonegap build but added when making build with cordova cli
                  albertoo74224114 Level 1

                  In your config.xml use this params:

                   

                  <preference name='phonegap-version' value='cli-7.0.1' />

                  <preference name='pgb-builder-version' value='2' />

                   

                  https://blog.phonegap.com/phonegap-7-0-1-now-on-build-and-it-includes-some-important-chang es-89087fe465f5

                  • 9. Re: Splash screen png not added in phonegap build but added when making build with cordova cli
                    michaelh27303698

                    Just spent las 7 hours looking why this f$£!/§g splash screen doesn't work on Android... thanks