Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
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
Sencha User

Originally Posted by
benmcmath
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.
-
Sencha User
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 !
-
Sencha User

Originally Posted by
toto83250
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.
-
30 Jan 2012, 11:35 AM
#15
Sencha User
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;
}
});
-
Sencha User
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...
:-)