ios icon do not override default phonegap icon

  • 1
  • Problem
  • Updated 4 years ago
I am building a zip package using devextreme tool, and when i try to upload it, everything build fine only one problem appears which is the icon on ios. it shows the default phonegap icon where the splash is ok. on android everything is fine.
below is my config.xml refrencing the icons for ios :

regards,Elie.
Photo of Elie Abdo

Elie Abdo

  • 4 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Your code doesn't show, probably because you failed to read and apply the forum info under "some HTML allowed", especially about the CODE element
Photo of Elie Abdo

Elie Abdo

  • 4 Posts
  • 0 Reply Likes

  • icon src="res/PackageIcons.iOS.icon.png" gap:platform="ios" width="57" height="57"

  • icon src="res/PackageIcons.iOS.icon-60.png" gap:platform="ios" width="60" height="60"

  • icon src="res/PackageIcons.iOS.icon-72.png" gap:platform="ios" width="72" height="72"

  • icon src="res/PackageIcons.iOS.icon-76.png" gap:platform="ios" width="76" height="76"

  • icon src="res/PackageIcons.iOS.icon@2x.png" gap:platform="ios" width="114" height="114"

  • icon src="res/PackageIcons.iOS.icon-60@2x.png" gap:platform="ios" width="120" height="120"

  • icon src="res/PackageIcons.iOS.icon-72@2x.png" gap:platform="ios" width="144" height="144"

  • icon src="res/PackageIcons.iOS.icon-76@2x.png" gap:platform="ios" width="152" height="152"

  • icon src="res/PackageIcons.iOS.icon-60@3x.png" gap:platform="ios" width="180" height="180"

Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Can't check:
- whether or not your XML is well-formed (valid)
- whether or not the paths to the icons are correct
- whether or not their file names are correct
- whether or not you have to gap: namespace declared
- whether or not the images are of the correct dimensions and mime type
Photo of Elie Abdo

Elie Abdo

  • 4 Posts
  • 0 Reply Likes
yes all of this are valid, as i can deploy to my iphone and app is working fine.

The point is that when i used cli 5.2.0 it is working fine and all icons appear fine on android and on ios. when i changed to cli6.1.0 only ios icon is not working and it shows me the default phonegap icon.

So for that reason i am asking if there is any changes while witching to this cli version and if there is something i need to add.

appreciate your help,
regards,Elie.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
As far as I know (and can see in my apps) there are no such changes in PGB cli-6.1.0
There is nothing specific to add.
Photo of Elie Abdo

Elie Abdo

  • 4 Posts
  • 0 Reply Likes
thanks for your support.
i have one last question : my icon images exist in a res folder under www folder. is it the right place to reference the images or res folder should be next to www folder ?

regards,Elie.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Phonegap Build doesn't have any requirements as to how the directory structure is. Neither does it require specific names.
All PGB wants is:
- your config.xml and index.html are both in the root directory ("/") of your zip file, not in any other directory like /www or otherwise
- all other assets in the root or in any directories, as you see fit.