PDA

View Full Version : [FIXED]Homescreen Icon on iOS4.0 doesn't seem to work



Andrel
7 Jul 2010, 11:02 AM
Hi, I upgraded my Ipod-Touch 3G (8G, so technical 2G) to iOS4.0 yesterday. No I was playing a little bit with sencha touch and noticed, that the Icon set in Ext.setup isn't used when I add the App to my Homescreen. Instead it shows a small Screenshot of the actual page and uses that for an Icon.

Here is the code I've copied. Maybe someone can check this (sencha 0.91).



Ext.setup({
icon: 'icon.png', // Starticon
glossOnIcon: true,
phoneStartupScreen: 'phone_startup.png', // warscheinlich startupscreen
onReady: function() {


icon.png and phone_startup.png are both in the root Folder of my application and phone_startup.png is shown, so it can be no Path Problem.

SteveRyherd
8 Jul 2010, 10:17 AM
There appears to be a typo in the source code of the ext-touch.js file; I have the same problem and this is what I found in the ext-touch-debug.js


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

Notice for the phone platform it's not using the "rel" attribute. Add the "r" and you should be good.

egohead
8 Jul 2010, 10:20 PM
There appears to be a typo in the source code of the ext-touch.js file; I have the same problem and this is what I found in the ext-touch-debug.js


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

Notice for the phone platform it's not using the "rel" attribute. Add the "r" and you should be good.

thx! now the icon is working...

xantus
12 Jul 2010, 10:16 AM
Thanks, this has been fixed in the next release.