W3C Geolocation API | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

W3C Geolocation API

I have been trying to understand the WC3 Geolocation API. Can anyone shed some light on why this does not appear to work in the SL mobile app or Chrome on android. I had thought the problem was one to do with SL not serving pages on https but this does not appear to be the case. Please see my attempt to understand this at https://code.sololearn.com/WCHbx56Pjqu1/#html.

27th Nov 2017, 8:11 PM
Richard Myatt
Richard Myatt - avatar
2 Answers
+ 5
@Private [GER] My thanks for your response. I cannot get the SL app or Chrome to work on my Samsung pad but have no problem with Firefox on the same pad. The Geolocation API seems to give mixed results both on the pad and the PC even with Firefox. I find I can recover Geolocation coordinates for most of the day and then get errors (unable to retrieve location) late in the day. Thanks again.
2nd Dec 2017, 10:28 AM
Richard Myatt
Richard Myatt - avatar
+ 3
As far as I know the popup asking for permission isn't displayed because mobile browsers don't support advanced permissions.
1st Dec 2017, 11:19 PM
Private [GER]
Private [GER] - avatar