Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
icecappacino
Posts: 152
Registered: ‎02-12-2011

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?

 

 

Please use plain text.
BlackBerry Development Advisor
jeffheifetz
Posts: 514
Registered: ‎07-18-2011
My Carrier: Rogers

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

[ Edited ]

***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)
Please use plain text.