1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    44
    Answers
    1
    Vote Rating
    3
    dkamins is on a distinguished road

      0  

    Default Answered: Icons specified twice? (app.js and packager.json)

    Answered: Icons specified twice? (app.js and packager.json)


    Why are the app icons specified twice? Once in app.js:

    Code:
        icon: {
            57: 'resources/icons/Icon.png',
            72: 'resources/icons/Icon~ipad.png',
            114: 'resources/icons/Icon@2x.png',
            144: 'resources/icons/Icon~ipad@2x.png'
        },
    and then again the packager.json specifies an icon:

    Code:
        "iconName":"resources/icons/Icon.png",
    Which is used when & by what tools?

  2. The icon config in Ext.application would be used if you launched your web app in mobile safari and then added it to the homescreen, this config would state what icon to show there. The iconName in packager.json would be the icon for that native app.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,824
    Answers
    3470
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The icon config in Ext.application would be used if you launched your web app in mobile safari and then added it to the homescreen, this config would state what icon to show there. The iconName in packager.json would be the icon for that native app.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha Premium Member
    Join Date
    Oct 2011
    Posts
    61
    Answers
    3
    Vote Rating
    0
    dishwashwebdesign is on a distinguished road

      0  

    Default


    I still get that strange behavior with these homescreen icons.
    For some reason they seem to show up properly for older iPhones and iPod Touches.
    For the new iPhone 4S and the new iPad they just wont show up properly. A little screenshot of the app will be displayed instead.

    Any hints why this could act like that?