4 Replies Latest reply on Nov 27, 2016 1:52 PM by davidh7174699

    Application icon doesn't appear on PhoneGap Build page.

    davidh7174699

      I am using the project structure as explained on:

       

      http://docs.phonegap.com/phonegap-build/getting-started/app-project-structure/

       

      This is what I have:

       

      Project root
      |
      +-- config.xml
      +-- icon.png
      +-- splash.png
      +-- res/
      |   +--- android/
      |        +---  icon.png
      |        +---  icon-ldpi.png
      |        +--- ...etc...
      +--- www/
           +-- index.html
           +-- css/
           |   ... files ...
           +-- img/
           |   ... files ...
           +-- js/
               ... files ...
      

       

      The zip file I uploaded is everything under the Project root directory.

      The build went fine but no icons is displayed.

       

      Here is my config.xml.

       

      <?xml version='1.0' encoding='utf-8'?>
      <widget id="net.resolusi.pesona2016" version="2.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
        <name>Pesona Indonesia 2016</name>
        ...
        <content src="www/index.html" />
        <preference name="phonegap-version" value="cli-6.3.0" />
        ...
        <icon src="icon.png" />
        <splash src="splash.png" />
        ...
        <platform name="android">
        <allow-intent href="market:*" />
        <icon src="icon.png" qualifier="nodpi" />
        <icon src="res/android/icon-ldpi.png" qualifier="ldpi" />
        ...
        <splash src="res/android/screen-ldpi.9.png" qualifier="land-ldpi" />
        <splash src="res/android/screen-ldpi.9.png" qualifier="port-ldpi" />
        ...
        </platform>
        <platform name="ios">
        ...
        </platform>
        <platform name="windows">
        ...
        </platform>
      </widget>
      

       

      What did I do wrong?

      My real concern is that the build will not include the icons.

       

      Any help is appreciated.

        • 1. Re: Application icon doesn't appear on PhoneGap Build page.
          VectorP Level 4

          Phonegap Build wants another structure: both config and index should be in the root directory of your zip file.

          • 2. Re: Application icon doesn't appear on PhoneGap Build page.
            davidh7174699 Level 1

            I have tried this before and the result was the same. The build is successful but no icons.

             

            Project root
            |
            +-- config.xml
            +-- index.html
            +-- res/
            |   +-- .pgbomit
            |   +-- icon.png
            |   +-- splash.png
            |   +-- android/
            |        +--  icon.png
            |        +--  icon-ldpi.png
            |        +-- ...etc...
            +-- css/
            |   ... files ...
            +-- img/
            |   ... files ...
            +-- js/
                ... files ...
            

             

            <?xml version='1.0' encoding='utf-8'?>
            <widget id="net.resolusi.pesona2016" version="2.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
              <name>Pesona Indonesia 2016</name>
              ...
              <content src="index.html" />
              <preference name="phonegap-version" value="cli-6.3.0" />
              ...
              <icon src="res/icon.png" />
              <splash src="res/splash.png" />
              ...
              <platform name="android">
              <allow-intent href="market:*" />
              <icon src="icon.png" qualifier="nodpi" />
              <icon src="res/android/icon-ldpi.png" qualifier="ldpi" />
              ...
              <splash src="res/android/screen-ldpi.9.png" qualifier="land-ldpi" />
              <splash src="res/android/screen-ldpi.9.png" qualifier="port-ldpi" />
              ...
              </platform>
              <platform name="ios">
              ...
              </platform>
              <platform name="windows">
              ...
              </platform>
            </widget>
            
            • 3. Re: Application icon doesn't appear on PhoneGap Build page.
              VectorP Level 4

              You don't have such file:

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

              and this is not what PGB wants:

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

              • 4. Re: Application icon doesn't appear on PhoneGap Build page.
                davidh7174699 Level 1

                Sorry, that was a typo.

                 

                I have also tried to move icon.png and splash.png into the root folder and the result is still the same. There is still no icon in the build.phonegap.app page for my project.

                 

                Anyway, I have corrected the typo, downloaded the APK and run it in Android Studio's simulator and it works fine.  The APK file also have all the necessary assets. Both the icon and splashscreen work correctly.

                 

                BTW, I have searched the forums and the internet prior to posting this and it appears there are some issues with cli-6.3.0. I have tried most of the things people have suggested with the same result.  So I can only guess that there is a bug on Phonegap Build.