-
30 Oct 2011 1:06 PM #11
I once in a while get this issue as well.
Clearing the cache of the browser fixes the issue for me (iPad 2 / iOS5).
-
31 Oct 2011 12:29 PM #12
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.
-
5 Nov 2011 5:43 AM #13
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 !
-
5 Nov 2011 8:08 AM #14
-
30 Jan 2012 11:35 AM #15
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; } });
-
31 Jan 2012 5:19 AM #16
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...
:-)
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote