Hi,
I couldn’t get geolocation from safari on real Iphone devices(5s,6s,6s+,7,7+). Some geo sites asks for location but wisej pages that contains geolocation widget doesn’t ask. I activated location services for safari from settings.
Thank you.
Hi Adil,
geolocation only works with https.
See here: https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only
Hope that helps.
Best regards
Frank
Hi Frank we have already have an secure page. On android and win mobile there is no problem.
Hi Adil,
Wisej simply uses the geolocation api: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation
The request doesn’t come from Wisej, it comes from the browser implementing the api.
/Luca
Yes I saw your implemantation. As a last chance I needed to ask you. Did you faced with this problem. How did you or anyone overcame this problem. I think I am missing a point. 🙁
Thank you.
Hi Adil,
We have only seen the problem with https when chrome changed it in version 50. I tried with an iPhone and you need to enable safari in Location Services.
Can you try this from your device?
https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation_error
/Luca
I attached a photo for my try result. It always gives me 0 location.
Hi Luca,
Your test page is now working on iphones. I played some settings on geo widget but my pages still doesn’t work. Which settings did you apply in your test page.
thank you.
It was the timeout. Apparently older ios devices don’t recognize the Infinity timeout. I simply set it to 10000. It was working with the 7 and Infinity is a valid timeout value according to the api specs.
Please login first to submit.