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
New Contributor
Craigstock
Posts: 7
Registered: ‎07-10-2012
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?

Please use plain text.
Developer
nunodonato
Posts: 313
Registered: ‎03-28-2012
My Carrier: TMN

Re: Enabling GPS in smartphone simulator

Did you setup a location for the GPS simulator?

Nuno
theBBthing.wordpress.com - my BlackBerry development blog: news, tips and tutorials
bitoutsidethebox.com - re-imagining digital solutions


Please use plain text.
New Contributor
Craigstock
Posts: 7
Registered: ‎07-10-2012
My Carrier: MTN

Re: Enabling GPS in smartphone simulator

Yup, still doesn't work. Any other ideas?
Please use plain text.
Administrator
astanley
Posts: 1,140
Registered: ‎07-02-2009
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.

Watch the BlackBerry Jam Americas Sessions.
Please use plain text.