Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11
    Sencha User
    Join Date
    Sep 2011
    Posts
    13
    Vote Rating
    0
    zzerk is on a distinguished road

      0  

    Default


    I once in a while get this issue as well.
    Clearing the cache of the browser fixes the issue for me (iPad 2 / iOS5).

  2. #12
    Sencha User
    Join Date
    Jan 2011
    Posts
    54
    Vote Rating
    0
    chandramuralis is on a distinguished road

      0  

    Default


    Quote Originally Posted by benmcmath View Post
    It looks like there is an issue with the 'autoUpdate' feature of the Ext.util.GeoLocation. Setting that to false caused this issue to stop occurring.

    This may not fix it for everyone, but it did in my app.

    Related thread on stackoverflow: http://stackoverflow.com/questions/7...ceeded-timeout
    I replaced WatchPosition with GetCurrentPosition and it fixed this timeout issue and we haven't had any problem now. It seems like WatchPosition implementation has some bug in iOS5.
    I also verified this by doing the same with maps.google.com. Before I was able to reproduce the same Javascript timeout exception by following very few steps and reproduce the exception every single time. Now I denied google maps to get my current position and now maps is working fine even with the same exact steps that I follow to generate this timeout exception.

  3. #13
    Sencha User
    Join Date
    Jan 2008
    Posts
    1
    Vote Rating
    0
    toto83250 is on a distinguished road

      0  

    Default


    Same problem with Iphone 4 (8Go) with IOS5 (everything is original, I bought it yesterday).
    First, it works well...
    Then it doesn't work anymore (idem for Jquery mobile)
    After clearing the cache of the browser, the issue is fixed.
    Hope it helps !

  4. #14
    Sencha User
    Join Date
    Jan 2011
    Posts
    54
    Vote Rating
    0
    chandramuralis is on a distinguished road

      0  

    Default


    Quote Originally Posted by toto83250 View Post
    Same problem with Iphone 4 (8Go) with IOS5 (everything is original, I bought it yesterday).
    First, it works well...
    Then it doesn't work anymore (idem for Jquery mobile)
    After clearing the cache of the browser, the issue is fixed.
    Hope it helps !
    This is not a one time issue, you are going to get this error continuously and you will end up clearing cache every time.

  5. #15
    Sencha User
    Join Date
    Apr 2011
    Posts
    1
    Vote Rating
    0
    my8bird is on a distinguished road

      0  

    Default Patch Solution

    Patch Solution


    Here is a patch I put together so that the project I am working on can move forward from this bug.
    Code:
    /** Fix bug where iOS 5 hates watchPosition for getting updates of users position.
    *
    * See: http://www.sencha.com/forum/showthread.php?150932
    *
    * This basically switches to polling system using the getCurrentPosition method
    * which iOS 5 does not appear to have an issue with.
    */
    Ext.override(Ext.util.GeoLocation, {
       setAutoUpdate : function(autoUpdate) {
          // Cancel the old one if it is running
          if (this.watchOperation !== null) {
             clearInterval(this.watchOperation);
             this.watchOperation = null;
          }
          // Early out if we are not updating anymore
          if (!autoUpdate) {
             return true;
          }
          // Oops, no geo support
          if (!Ext.supports.GeoLocation) {
             this.fireEvent('locationerror', this, false, false, true, null);
             return false;
          }
          // Start looping interval for getting the current location.
          try{
             this.watchOperation = setInterval(Ext.createDelegate(function() {
                this.updateLocation();
             }, this),
             3000); // 3 second frequency is phonegaps setting the spec is not clear on this point.
          }
          catch(e){
             this.autoUpdate = false;
             this.fireEvent('locationerror', this, false, false, true, e.message);
             return false;
          }
          return true;
       }
    });

  6. #16
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    393
    Vote Rating
    16
    digeridoopoo will become famous soon enough

      0  

    Default Bug in iOS 5.01

    Bug in iOS 5.01


    I believe there are a few bugs still in the latest Safari in IOS5.01....I've been having issues with Safari caching old versions when saving to the homescreen, and occasional debug errors in the console for no reason.

    I have quit safari completely, then gone back in and all seems to work. So for anyone having weird unexplainable errors try that first...

    :-)