Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

geolocation api works in simulator not on open c

  • 1 ответ
  • 4 имеют эту проблему
  • 3 просмотра
  • Последний ответ от 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

Все ответы (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