espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.54k stars 7.39k forks source link

Html Geolocation API not working on Android #5199

Closed abdulahali982 closed 3 years ago

abdulahali982 commented 3 years ago

Hi, I am currently a beginner to HTML. Working over an esp32 cam based project wanted to get live location from mobile to esp32. Code I wrote is working absolutely fine over chrome in PC but Geolocation API seems to response nothing in case of chrome on android.

New Text Document.txt

`<!DOCTYPE html>

Location Tracker

`

Also tried geolocation api example from W3school on android chrome and that worked fine. It will be much appreciated if someone can guide me about if I need to change my browser or mobile settings for it to work or another browser or anything else.

sansillusion commented 3 years ago

This is not a bug from esp32. You would have a better chance to get an answer on a chome or android forum.

Le jeu. 20 mai 2021 3 h 16 p.m., abdulahali982 @.***> a écrit :

Hi, I am currently a beginner to HTML. Working over an esp32 cam based project wanted to get live location from mobile to esp32. Code I wrote is working absolutely fine over chrome in PC but Geolocation API seems to response nothing in case of chrome on android.

`

Location Tracker

` Also tried geolocation api example from W3school on android chrome and that worked fine. It will be much appreciated if someone can guide me about if I need to change my browser or mobile settings for it to work or another browser or anything else. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or unsubscribe .
abdulahali982 commented 3 years ago

@sansillusion sorry if I wasn't really clear. I am trying to use this as a server call html request code in ESP32, but have the option to use a mobile close to esp32 to send its location to esp32. But the above code seems running on windows chrome while not on android chrome and neither on esp32 html server response. Any ideas around it?

abdulahali982 commented 3 years ago

I switched ro use Blynk location Streamer Widget