Results 1 to 2 of 2

Thread: Ext.application launch timeout? refresh?

  1. #1
    Sencha User wilzdezign's Avatar
    Join Date
    Jul 2011
    Location
    WA
    Posts
    65
    Vote Rating
    0
      0  

    Default Ext.application launch timeout? refresh?

    Getting ready to release an application built with the ST2 native build for iOS which I am using 4 DataViews pulling 4 different external JSONP requests and also a MapPanel with Google Maps. I pushed it onto my iPad with wireless enabled, but not authenticated. What is happening on open is the application just sits at the loading screen with the dots. If I close the app and authenticate to the wireless, then open the app, it still sits there at the loading screen (cached?). If I delete the app and install it again, the wireless now authenticated, the application loads along with all the lists and the map panel correctly.

    I believe the JSONP calls happen before the 'launch' from the Ext.application, so if they do not connect to the Internet, is there a way to timeout the 'launch' and try again next time the site/app is opened up? or must this be done as a static link to refresh the page?

    I can mimic this by unplugging the network cable to the computer and then open the ST2 site in Chrome/Safari, it just sits at the loading dots and it never reaches the 'launch' to execute Ext.fly('appLoadingIndicator').destroy() and Ext.Viewport.add(Ext.create('MainPanel'))

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    In launch I would just check if things are loaded. If not then execute the launch method again after a certain delay.
    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

Tags for this Thread

Posting Permissions

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