Results 1 to 5 of 5

Thread: Controller Action not firing on iPhone

  1. #1
    Sencha User rbellow's Avatar
    Join Date
    Dec 2011
    Location
    Austin, Texas
    Posts
    6
    Answers
    2
    Vote Rating
    0
      0  

    Default Answered: Controller Action not firing on iPhone

    I have a Sencha Touch 1.1 MVC application that works perfectly in Safari/Chrome with no errors thrown. When uploaded to the server and accessed from my iPhone it redirects to the defaultUrl as expected but fails to fire the index action. If I then navigate to another "page" and return to the Home/index it finally loads. What could be the cause?

  2. Here was the issue.

    I had built a similar application with another technology and added it to my Home Page on my iPhone. I upgraded the application with Sencha Touch and uploaded it to the server. Both applications pointed to a default.aspx page so I assumed there would be no issues just loading the new Sencha version from the existing icon. I was wrong. I loaded the new app in Safari and added to the Home Page and it works as expected.

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

    Default

    File not loaded in order or in time. When you go back, the cache may be taking over.
    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

  4. #3
    Sencha User rbellow's Avatar
    Join Date
    Dec 2011
    Location
    Austin, Texas
    Posts
    6
    Answers
    2
    Vote Rating
    0
      0  

    Default

    I use the same order that is outlined in MVC best practices. And the launch function (which is firing) according to the documentation is "Called automatically when the page has completely loaded" so I am sure the controller that is in the next file is already loaded by this time. Can you suggest a way that can help me debug it? Like I said it's not throwing any errors so I am having a hard time locating the problem. Thanks.

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    You have a safari dev tool built in that can show you any errors or console.logs. If you want a more advanced, you can search for a remote debugger.
    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

  6. #5
    Sencha User rbellow's Avatar
    Join Date
    Dec 2011
    Location
    Austin, Texas
    Posts
    6
    Answers
    2
    Vote Rating
    0
      0  

    Default

    Here was the issue.

    I had built a similar application with another technology and added it to my Home Page on my iPhone. I upgraded the application with Sencha Touch and uploaded it to the server. Both applications pointed to a default.aspx page so I assumed there would be no issues just loading the new Sencha version from the existing icon. I was wrong. I loaded the new app in Safari and added to the Home Page and it works as expected.

Posting Permissions

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