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.

inside custom component

Web and WebWorks Development

Reply
Highlighted
New Contributor
Posts: 7
Registered: ‎07-10-2012
My Device: Bold 9700
My Carrier: MTN

Enabling GPS in smartphone simulator

Hi All,

 

I am attempting to develop an application using webworks and phonegap.

 

However when I use the ant blackberry load-simulator I cannot seem to get the GPS to work on the default phonegap sample...

 

See image:

 

 

Any ideas how I can recify this?

Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: Enabling GPS in smartphone simulator

Did you setup a location for the GPS simulator?

Nuno
New Contributor
Posts: 7
Registered: ‎07-10-2012
My Device: Bold 9700
My Carrier: MTN

Re: Enabling GPS in smartphone simulator

Yup, still doesn't work. Any other ideas?
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Enabling GPS in smartphone simulator

To confirm, you selected Simulate --> GPS Location, and then selected one of the Locations from the drop-down box (or entered your own) and clicked 'Close'?

 

If so, the next step is to confirm that the OS is receiving that simulated GPS location.  To do this, return to the home screen, open the 'Options' appliation and click on the "Device" sub menu.  You will then see a "Location Settings" option.  Open this.  Do you see GPS coordinates listed within the "GPS location setting"?  If not, open the menu using the BlackBerry menu button, and select 'refresh GPS'.

 

Once this is done, save this option and try your sample again

 

Here is a test page that can be used to help:

http://blackberry.github.com/WebWorks-Samples/kitchenSink/html/html5/geo.html

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.