1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    15
    Vote Rating
    0
    Answers
    1
    Kah0ona is on a distinguished road

      0  

    Default Unanswered: Detect if app is launched 'from desktop'

    Unanswered: Detect if app is launched 'from desktop'


    If you add your html5 app to desktop using 'add to home screen' on iOS (and similar on android), is there a way to detect if your app was launched using this home screen shortcut icon?

    I don't think so, but we are seeing some things that do work from a browser window , say mobile Safari, and when launched from home screen it doesn't work.

    This happens particularly when hard redirecting to do oAuth on Facebook for instance. It works from a browser, not from the home screen.

    Any info on this subject is appreciated!

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Ext.browser.is.Standalone should be true if launched from the homescreen
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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