16 Replies Latest reply on Jul 25, 2016 2:34 PM by freelocreativo

    My splash screen doesn't work, tried everything

    matheuss83348737

      I've tried everything but nothing works, i'm following this tutorial: PhoneGap Build Documentation

       

      Unfortunally, when a build APK (after replaces icons/splashs) and build on build.phonegap.com, my app don't save the splash screen/icon. Any ideas why?

        • 1. Re: My splash screen doesn't work, tried everything
          Chris W. Griffith Adobe Community Professional

          Can you post the config.xml file here to see if there are any obvious errors.

           

          Chris

          • 3. Re: My splash screen doesn't work, tried everything
            Chris W. Griffith Adobe Community Professional

            Since the config.xml file for PhoneGap Build is www already, your file paths to the assets are referenced incorrectly. Remove the 'www/' from each of them and you should be good to go.

             

            Some other comments:

            You can remove <splash src="splash.png" />  it does not do anything

             

            You also will want to change the plugin references from org.apache format to cordova-plugin format.

             

            I also think you can remove <engine name="android" spec="~5.1.1" />  That is for plugin development only.

            1 person found this helpful
            • 4. Re: My splash screen doesn't work, tried everything
              matheuss83348737 Level 1

              Actually, the config file is outside www. It should be inside?

               

              Either ways, here's the config.xml after editions: [XML] <widget id="club.primepass.primepass" version="1.0.3" xmlns="http://www.w3.org/n - Pastebin.com

              • 5. Re: My splash screen doesn't work, tried everything
                Chris W. Griffith Adobe Community Professional

                Yes. Per the PhoneGap Build documentation: The config.xml file must be in the same directory as the index.html file. As a general rule, none of the other PhoneGap tooling should be used with PhoneGap Build.

                • 6. Re: My splash screen doesn't work, tried everything
                  matheuss83348737 Level 1

                  So, i've moved the file and the icon now appears.. but screen don't show up. The files exists and the path is right, any ideas?

                  • 7. Re: My splash screen doesn't work, tried everything
                    Chris W. Griffith Adobe Community Professional

                    Make sure you have everything in one main directory. Index.html and the config.xml at the root level. All other assets  need to be within this directory (images, js, CSS, etc)

                    • 8. Re: My splash screen doesn't work, tried everything
                      matheuss83348737 Level 1

                      Everything is in www directory, including res folder, js files, css, etc). Still not working (only icon working)...

                      • 9. Re: My splash screen doesn't work, tried everything
                        Chris W. Griffith Adobe Community Professional

                        Also lose the gap: prefix on the splash tags and the platform attribute as well.

                         

                        Have you included the splashscreen plugin to your project?

                         

                        Chris

                        • 10. Re: My splash screen doesn't work, tried everything
                          ferrigus

                          Hi, I have the same problem. You can solved this issue?

                           

                          Felix

                          • 11. Re: My splash screen doesn't work, tried everything
                            kerrishotts Adobe Community Professional

                            Have you followed the steps presented in this thread?

                             

                            Can you post your config.xml? It's difficult to troubleshoot without it.

                            • 12. Re: My splash screen doesn't work, tried everything
                              freelocreativo

                              Hola. Mi problema con el config es que si lo pongo al mismo nivel del index en la carpeta www, al instalarlo en el dispositivo android no arranca la aplicación. El aviso que me sale es : Lamentablemente la aplicación se detuvo. Estoy trabajando con la version de plugin cli-5-2-0

                              Mi archivo config es:

                              <?xml version="1.0" encoding="UTF-8"?>

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

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

                                xmlns:android = "http://schemas.android.com/apk/res/android"

                                id        = "com.ejemplo.ejemplo"

                                versionCode="1.1.1"

                                version   = "2.0.1">

                                <content src="index.html" />

                                <name>ejemplo</name>

                                <description>ejemplo.</description>

                                <author href="http://www.freelocreativo.com" email="leorincon@freelocreativo.com">Leonardo Rincon</author>

                                <feature name="http://api.phonegap.com/1.0/network"/>

                                <feature name="http://api.phonegap.com/1.0/notification"/>

                               

                              <!-- Plugin-->

                              <plugin name="cordova-plugin-inappbrowser" source="pgb" spec="1.0.1" />

                              <!--<gap:plugin name="org.apache.cordova.splashscreen" version="2.1.0" source="npm"/>-->

                              <plugin name="br.com.paveisitemas.splashscreen" spec="2.1.1" source="pgb" />

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

                              <gap:plugin name="cordova-plugin-whitelist" source="npm" version="~1" />

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

                              <plugin name="cordova-plugin-whitelist" spec="~1" />

                              <gap:plugin name="phonegap-admob" source="npm"/>

                              <!-- Plugin-->

                               

                               

                              <!-- Preferencias -->

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

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

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

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

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

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

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

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

                              <preference name="ios-statusbarstyle" value="default" />

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

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

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

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

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

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

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

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

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

                              <preference name="TopActivityIndicator" value="white" />

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

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

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

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

                              <preference name="windows-identity-name" value="" />

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

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

                              <preference name="android-maxSdkVersion" value="22" />

                              <preference name="android-installLocation" value="auto" />

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

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

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

                              <preference name="ErrorUrl" value="null" />

                              <preference name="BackgroundColor" value="0x000000" />

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

                              <preference name="LoadingDialog" value="Carga de Poder," />

                              <preference name="LoadUrlTimeoutValue" value="null" />

                              <!-- Terminan las Preferencias-->

                               

                               

                              <!-- Iconos para Android-->

                              <platform name="android">

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

                                <icon src="res/icon/android/36.png" density="ldpi" />

                                  <icon src="res/icon/android/48.png" density="mdpi" />

                                  <icon src="res/icon/android/72.png" density="hdpi" />

                                  <icon src="res/icon/android/96.png" density="xhdpi" />

                                <icon src="res/icon/android/144.png" density="xxhdpi" />

                                <icon src="res/icon/android/192.png" density="xxxhdpi" />

                               

                              <!-- Terminan los Iconos para Android-->

                              <!-- los Screen para Android-->

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

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

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

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

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

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

                                </platform>

                               

                              <!--permisos-->

                              <access origin="*" />

                              <access origin="http://www.radiopoderonline.com" subdomains="true" />

                              <access origin="https://www.facebook.com" subdomains="true" />

                              <access origin="https://www.twitter.com" subdomains="true" />

                              <access origin="http://www.poderonlineradio.chatango.com" subdomains="false" />

                              <access origin="http://199.217.118.14:8111/;stream/1" subdomains="true" />

                               

                               

                              </widget>

                              • 13. Re: My splash screen doesn't work, tried everything
                                VectorP Level 4

                                Well, frankly, this is a bit of a mess.

                                 

                                You are specifying name="br.com.paveisitemas.splashscreen" spec="2.1.1" source="pgb", which is not the correct splashscreen plugin.

                                Use "cordova-plugin-splashscreen" from npm, instead.

                                 

                                Also, you are using the density attribute for compound splash qualifiers. That won't do. Use the 'qualifier' attribute, instead.

                                 

                                Unrelated, please not that you have included the whitelist plugin several times, even from different sources.

                                Since you have access origin="*", you should not add the other, specific domains separately.

                                Oh, and you should remove the 'feature' elements.

                                • 14. Re: My splash screen doesn't work, tried everything
                                  freelocreativo Level 1

                                  Gracias VerctorP ¿Tu crees que es por esta razón que no arranca la aplicación?

                                  • 15. Re: My splash screen doesn't work, tried everything
                                    VectorP Level 4

                                    Not sure. Perhaps there are additional reasons.

                                    But why don't you just correct the errors (which would be necessary, anyway) and test it?

                                    • 16. Re: My splash screen doesn't work, tried everything
                                      freelocreativo Level 1

                                      Hola VectorP ya hice las correcciones solicitadas y la app me compila bien, pero es muy extraño que la aplicación no arranca en el movil.

                                      Este es mi directorio de archivos: Captura de pantalla 2016-07-25 a las 4.31.21 p.m..png

                                      <?xml version="1.0" encoding="UTF-8"?>

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

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

                                        xmlns:android = "http://schemas.android.com/apk/res/android"

                                        id        = ""

                                        versionCode="1.1.1"

                                        version   = "2.0.1">

                                        <content src="index.html" />

                                        <name>Radio Poder Online</name>

                                        <description></description>

                                        <author href="http://www.freelocreativo.com" email="leorincon@freelocreativo.com">Leonardo Rincon</author>

                                       

                                      <!-- Plugin-->

                                      <plugin name="cordova-plugin-inappbrowser" source="pgb" spec="1.0.1" />

                                      <plugin name="org.apache.cordova.splashscreen" version="2.1.0"/>

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

                                      <plugin name="phonegap-admob" spec="4.1.11" source="npm"/>

                                      <!-- Plugin-->

                                       

                                       

                                      <!-- Preferencias -->

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

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

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

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

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

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

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

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

                                      <preference name="ios-statusbarstyle" value="default" />

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

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

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

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

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

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

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

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

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

                                      <preference name="TopActivityIndicator" value="white" />

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

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

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

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

                                      <preference name="windows-identity-name" value="" />

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

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

                                      <preference name="android-maxSdkVersion" value="22" />

                                      <preference name="android-installLocation" value="auto" />

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

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

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

                                      <preference name="ErrorUrl" value="null" />

                                      <preference name="BackgroundColor" value="0x000000" />

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

                                      <preference name="LoadingDialog" value="Carga de Poder," />

                                      <preference name="LoadUrlTimeoutValue" value="null" />

                                      <!-- Terminan las Preferencias-->

                                       

                                       

                                      <!-- Iconos para Android-->

                                      <platform name="android">

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

                                        <icon src="res/icon/android/36.png" qualifier="ldpi" />

                                          <icon src="res/icon/android/48.png" qualifier="mdpi" />

                                          <icon src="res/icon/android/72.png" qualifier="hdpi" />

                                          <icon src="res/icon/android/96.png" qualifier="xhdpi" />

                                        <icon src="res/icon/android/144.png" qualifier="xxhdpi" />

                                        <icon src="res/icon/android/192.png" qualifier="xxxhdpi" />

                                       

                                      <!-- Terminan los Iconos para Android-->

                                      <!-- los Screen para Android-->

                                        <splash src="res/screen/android/200x320.png"  qualifier="port-ldpi" />

                                        <splash src="res/screen/android/320x480.png"  qualifier="port-mdpi" />

                                        <splash src="res/screen/android/480x800.png"  qualifier="port-hdpi" />

                                        <splash src="res/screen/android/720x1280.png" qualifier="port-xhdpi" />

                                        <splash src="res/screen/android/960x1600.png" qualifier="port-xxhdpi" />

                                        <splash src="res/screen/android/1280x1920.png" qualifier="port-xxxhdpi" />

                                        </platform>

                                       

                                      <!--permisos-->

                                      <access origin="http://www.radiopoderonline.com" subdomains="true" />

                                      <access origin="https://www.facebook.com" subdomains="true" />

                                      <access origin="https://www.twitter.com" subdomains="true" />

                                      <access origin="http://www.poderonlineradio.chatango.com" subdomains="false" />

                                      <access origin="http://199.217.118.14:8111/;stream/1" subdomains="true" />

                                       

                                       

                                      </widget>