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

Trusted Contributor
Posts: 152
Registered: ‎02-12-2011
My Device: Not Specified

Geolocation in O.S. 5 Devices/ Simulator

I'm trying to use the navigator.geolocation functions in the new webworks api.... 



However it doesn't seem to work in the 8520 simulator. But I thought that the new webworks SDK includes the html5 shim so O.S. 5 devices recieve the geo-location capabilities?


Why then would the api reference O.S. 5 https://bdsc.webapps.blackberry.com/html5/apis/navigator.geolocation.html#.getCurrentPosition as having the geo-location capabilities when the sample http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Using-HTML5-Geolocation-in-your-... DOES NOT WORK on the OS 5 device?



Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: Geolocation in O.S. 5 Devices/ Simulator

[ Edited ]



Hi icedcappacino,


Are you running the MDS simulator as well, this is necessary for an internet connection.


I was able to get the sample running on a 5.0 sim without any changes to the code.


In general you may find it faster to emulate in RIpple but this example should work great in both places.


PS if you want to simulate different locations in the sim this can be done by going Simulate -> GPS Location...

1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)