Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 410
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: JavaScript execution exceeded timeout after geolocation error

To resolve the issue, I created a Javascript extension that use Java code to get the location of the device.


While looking at my old Java code, I noticed that I have created a thread to manually stop the geolocation. Indeed, in some devices, even in Java, the timeout is not followed and the location run indefinitly. The BrowserField implementation surely has the same issue which make all Webworks app crash when a location is blocked in any BrowserField app.


The solution works very well, the only problem is that I must restrict to OS5 function. That means we cannot have Wifi location with the JavaScript extension.

Trusted Contributor
Posts: 227
Registered: ‎09-03-2010
My Device: Not Specified

Re: JavaScript execution exceeded timeout after geolocation error

could you please share your code about javascript extension?