PDA

View Full Version : Icon on home screen



danvega
19 Jul 2010, 5:41 AM
I have a very basic application

Ext.setup({
tabletStartupScreen: 'assets/images/tablet_startup.png',
phoneStartupScreen: 'assets/images/phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {

});

The icon is pointing to icon.png and that icon is in the root of the project. When I view the icon on the web on my phone and add it to my home screen its not using the icon. It takes a snapshot of the home page for the icon. Am I doing something wrong?

uxdan
19 Jul 2010, 7:14 AM
I ran into this too where the icon would show on the iPad but not on the iPhone. I found another posting somewhere, can't seem to find it now, but there was a misspelling in ext-touch-debug.js

Look around line: 75. The 'r' was missing from 'rel:' like so:



} else if (Ext.isString(config.phoneIcon) && Ext.platform.isPhone) {
appIcon.set({
el: 'apple-touch-icon' + precomposed,
href: config.phoneIcon
});
}


Just add the 'r'!

evant
19 Jul 2010, 7:14 AM
This has since been fixed and will be in the next release.