I am trying to launch a cordova application using phonegap and cannot change the default app icon for iOS - (the actual icons not the splash screen). The default icons are always being copied into the Resouces --> icons folder and not my custom icons. I have used the specified methods from phonegap which suggest adding an icon tag into the config.xml file but this does not work? Restarting xcode and rebooting my app, and deleting it from the simulator/device dont work.
This is my config.xml file where i am specifing the icons...
...
<icon src="icon.png" />
<icon src="icon/ios/icon.png" gap:platform="ios" width="57" height="57" />
<icon src="icon/ios/[email protected]" gap:platform="ios" width="114" height="114" />
<icon src="icon/ios/icon-72.png" gap:platform="ios" width="72" height="72"/>
<!-- retina iPad support: PhoneGap 2.5.0+ only -->
<icon src="icon/ios/[email protected]" gap:platform="ios" width="144" height="144"/>
...
Any help would be amazing!
p.s. i have obviously checked all related posts i could find on this and no luck
I have faced the same problem, and despite searching for a definitive I had no luck trying to add the icon tags in the config.xml, neither by storing my icons on the www/icon folder so cordova build could copy them as probably expected. The documentation is not clear at all, scattered around different posts and solutions.
So what works for me is the following, although I think is not the most elegant solution but it works.
Open your XCode project and store your icons on the folder Resources/icons or alternatively select your target project, go to Summary and scroll down until seeing the icons, click on any of them and right click on it and select open in finder so you have the correct location to override the default ones.
Be sure to use the same names that are used in the target folder to avoid confusion and CLEAN your project and BUILD it again.
It is likely that if you Run the project in the simulator or device the default icon appear, in that case just uninstall your app from the device and build it again.
Hope it helps, however I would expect to have instead a method to modify the development www and let cordova build copy the icons and splashcreen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With