Software Archive
Read-only legacy content
17061 Discussions

Settings icon on iOS is default Cordova

Nick_F_2
New Contributor III
792 Views

Hi 
I have just noticed that all my apps from previous builds of XDK as well as the latest version 1995 does not create an icon for the settings.

If you go to Settings on iOS and scroll down until you get to your application, the small icon against your App will be the default Cordova icon not an icon defined in your application.
How can I fix this.

 

0 Kudos
9 Replies
John_H_Intel2
Employee
792 Views

You need to include the correct size icon in the additions file. There are different sizes for different devices/iOS.

Create each of these image in your app and reference them.


<icon platform="ios" src="images/ios/72x72.icon.png" width="72" height="72" />
<icon platform="ios" src="images/ios/57x57.icon.png" width="57" height="57" />


<icon platform="ios" src="images/ios/40x40.png" width="40" height="40" />
<icon platform="ios" src="images/ios/50x50.png" width="50" height="50" />
<icon platform="ios" src="images/ios/80x80.png" width="80" height="80" />
<icon platform="ios" src="images/ios/120x120.icon.png" width="120" height="120" />

<icon platform="ios" src="images/ios/29x29.png" width="29" height="29" />
<icon platform="ios" src="images/ios/58x58.png" width="58" height="58" />

0 Kudos
Nick_F_2
New Contributor III
792 Views

Thank you John but it didn't fix the issue.

Why do I get this in the Build Log even though I have defined all my Logo's, Icon's and Splash Screens.

Copying icon from .../<appname>/images/splash120x120.png to .../<appname>/platforms/ios/<appname>/Resources/icons/icon-60@2x.png
cp: no such file or directory: .../<appname>/images/splash120x120.png

I have replaced my App Name with <appname>.

I have attached a screen grab from my iPhone so you can see the issue.

 

0 Kudos
John_H_Intel2
Employee
792 Views

What ios/device are you installing on? 

On an iphone 6, it uses the 58x58 image.

Thats just part of the log... :)

0 Kudos
Nick_F_2
New Contributor III
792 Views

iPhone 5s iOS 8.3

0 Kudos
John_H_Intel2
Employee
792 Views

Also, you should uninstall any previous version of the app you have installed, turn off, turn on the device, then install the new build. Dont ask me, but ios caches the icons and the only way that I have found to clear the cache is to reboot it.

0 Kudos
Nick_F_2
New Contributor III
792 Views

No sorry that made no difference either, still shows the Cordova icon.

0 Kudos
John_H_Intel2
Employee
792 Views

Did you create the corresponding images and change the code that I gave you to reflect the path to the images in your app?

0 Kudos
Nick_F_2
New Contributor III
792 Views

Hi John

What is the path relative too src="images/72x72.png", is it the www folder as my images are in www/images so should the src be relative to the additions.xml file therefore src="www/images/72x72.png" for example.

0 Kudos
Nick_F_2
New Contributor III
792 Views

Hi John
Sorted, many thanks, I did have the path wrong.

0 Kudos
Reply