Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

131
Vistas
Asking permission geolocation not remembered

We've build (a simple) prototype for a local weather based API in a webpage. The Javascript is as following. Function weather() is AJAX to get stuff from 3rd party API.

navigator.geolocation.getCurrentPosition(function (data) {
    weather(data, duration)
  });

All working like a charm but unlike the desktop where a visitor can tick the option 'Always grant location access' this is not available in mobiles (iPhone). In practise this leads to a JS Alert asking permission every time you visit this pages anew. During a session you are not asked again. Does anyone know how to avoid this?

PS: the iPhone used for testing has the setting 'Location for Safari' on 'Ask'. Not 'Grant always' obviously.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda