Sample config.xml for iPhone App

  • 1
  • Question
  • Updated 8 years ago
I am trying to find a sample config.xml file which specifies the different icons and the splash screen for a build. Is there one already out there, or can someone help me generate it?
Photo of Brew Camp

Brew Camp

  • 6 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
Check out my very basic static app that defines this in its config.xml:

https://github.com/filmaj/John_Garret...
Photo of Brew Camp

Brew Camp

  • 6 Posts
  • 0 Reply Likes
This doesn't seem to include the large 512x512 iTunes artwork required by the app store ... am I wrong about that?
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
No you're completely right. I do not think we support 512x512 artwork for iTunes yet in build, sorry.
Photo of Alexandre Fernandes

Alexandre Fernandes

  • 6 Posts
  • 0 Reply Likes
any news about 512x512 artwork?

also the default config.xml uses gap:role="default" on icon, what does it means? What are other roles options ?
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
The `gap:role="default"` attribute actually doesn't do anything.

There are only a few attributes on icons that are used by the build system:

* `src` - obviously used to specify the location of the image
* `width` - set as a number (represents pixels), helps build choose the right icon (if you specify multiple ones) depending on resolution of device (i.e. high vs. low res Android devices)
* `height` - same as `width`
* `rim:hover` - set this to `true` if you want the icon to be the hover icon on BlackBerry devices

No updates on the 512x512 iTunes artwork at the moment.
Photo of Shazron

Shazron, Developer Level 42

  • 37 Posts
  • 2 Reply Likes
To support 512x512 iTunes artwork, the project file must add a 512x512 png resource called "iTunesArtwork" without any extension. This should be copied automatically by the project in to the app bundle, and will be used in iTunes for the app icon (even for ad-hoc builds).

Currently, PhoneGap Build has no support for this as Fil has mentioned.
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
phonegap devs;
I think everyone would be very happy to get a new sample config.xml example with all the possibilities (plus explanations in comments). I know I would love it!
thanks for the help.
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
Hey everyone,

Just a quick reminder that we are documenting all supported features in config.xml in the docs!

https://build.phonegap.com/docs/confi...
Photo of Don Pipo

Don Pipo

  • 2 Posts
  • 0 Reply Likes
Hi PhoneGap Devs,

I totally love the PhoneGap builder, but I agree with gkatz. A complete config.xml explanation would be nice. For expample "gap:role="default"" in the -tag isn't explained in your link, but appears in the PhoneGap Start example.
Photo of Fil Maj

Fil Maj

  • 139 Posts
  • 15 Reply Likes
I will add an issue to the PhoneGap Start project, we'll remove unsupported attributes/elements, and add comment nodes for everything.
Photo of Don Pipo

Don Pipo

  • 2 Posts
  • 0 Reply Likes
Thank you very much Fil Maj, for your fast answer.
Photo of Tim Hauser

Tim Hauser

  • 13 Posts
  • 0 Reply Likes
There was no config.xml on my Mac to modify so I had to create one. I've tried putting it in various places but cannot get the splash page to change. Any suggestions?
Photo of Alan Thomson

Alan Thomson

  • 7 Posts
  • 0 Reply Likes
Is the 512x512 iTunes icon supported yet?
Photo of Shail

Shail

  • 21 Posts
  • 2 Reply Likes
Having same problem that icon does not show up in itunes. any proper solution for this? either in xcode or phonegap config?

Thanks,
Shail.