Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

geolocation api works in simulator not on open c

  • 1 reply
  • 4 have this problem
  • 3 views
  • Last reply by guigs

more options

I try to use the geolocation API. Just testing around. It works fine in the browser and in the simulator but when i install it on my ZTE Open C, I get asked if I want to share my position but nothing happens. When I download apps with geolocation they work, I just have this problem with my own.

Example code I have tried.

navigator.geolocation.getCurrentPosition( function(position) { console.log(position) }, function () {}, {maximumAge: Infinity} );

Any ideas? Thank you

I try to use the geolocation API. Just testing around. It works fine in the browser and in the simulator but when i install it on my ZTE Open C, I get asked if I want to share my position but nothing happens. When I download apps with geolocation they work, I just have this problem with my own. Example code I have tried. navigator.geolocation.getCurrentPosition( function(position) { console.log(position) }, function () {}, {maximumAge: Infinity} ); Any ideas? Thank you

All Replies (1)

more options

Some pieces are NOT under Mozilla's control and one of them is the geolocation configuration. It is completely up to the chip manufacturers and OEM to correctly configure a-gps. See: https://wiki.mozilla.org/Firefox_OS/Geolocation