How to get the location of a user using Javascript in the code playground? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 10

How to get the location of a user using Javascript in the code playground?

Code playground is not supporting the navigator.geolocation.getCurrentPosition(); command

23rd Jul 2018, 7:45 AM
Aanisha Bhattacharyya
Aanisha Bhattacharyya - avatar
7 Réponses
+ 11
Okay and Thanks again Calviղ .
23rd Jul 2018, 9:14 AM
Aanisha Bhattacharyya
Aanisha Bhattacharyya - avatar
+ 5
If you run web code from code playground, it only return you Sololearn US server location. https://code.sololearn.com/Wlj0cY7ZAlTs/?ref=app
23rd Jul 2018, 8:41 AM
Calviղ
Calviղ - avatar
+ 5
There is no way to get the current location?? Calviղ
23rd Jul 2018, 8:43 AM
Aanisha Bhattacharyya
Aanisha Bhattacharyya - avatar
+ 5
Thanks Calviղ but I was trying to make something which people could access from code playground itself.
23rd Jul 2018, 8:50 AM
Aanisha Bhattacharyya
Aanisha Bhattacharyya - avatar
+ 4
put the code to online webpage would get the location of the visitors.
23rd Jul 2018, 8:44 AM
Calviղ
Calviղ - avatar
+ 1
There is no way to get user information from code playground, because of the web execution is on Sololearn VM, before feed the HTML back to your phone webview.
23rd Jul 2018, 8:58 AM
Calviղ
Calviղ - avatar
0
we cant get the location of users through sololearn but if you create a blog or website then you can get. !!
26th Aug 2018, 10:35 AM
B.Dada khalander
B.Dada khalander - avatar