Results 1 to 2 of 2

Thread: Detect if app is launched 'from desktop'

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    15
    Answers
    1
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    Ext.browser.is.Standalone should be true if launched from the homescreen
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •