plateaukao / einkbro

A small, fast web browser based on Android WebView. It's tailored for E-Ink devices but also works great on normal android devices.
https://einkbro.github.io/overview.html
Other
1.24k stars 88 forks source link

Hisense A5: geolocation error: User denied Geolocation #391

Open artelse opened 3 months ago

artelse commented 3 months ago

Please write necessary information as described below. If information is not enough, I may not have time to look into it.

What device and app version are you using

All the settings, permissions and so on are exactly the same as for example Firefox. I've run out of ideas on how to fix this.

plateaukao commented 3 months ago

@artelse Please enable locaion In Settings > Start Control > Location. Restart the app, and try again; it should show you permission dialog to ask for Location permission from system. After that, it should work as expected.

(verified on my Hisense A5. :))

artelse commented 3 months ago

@plateaukao I enabled Location now, it asks for permission and is granted in App Permissions. It doesn't show any error, but location is still not working; when I tap Show My Location on OSM, nothing happens, no location icon appears on the status bar. I restarted the phone as well. Nice you also have an A5!

plateaukao commented 3 months ago

I tried mylocation.org and both openstreetmap.org, it did show GPS icon, and get my gps location. Maybe you should go outdoors and have a try? (by the way, the gps icon seems only displayed when it's detecting the location; after location is got, it disappears again on my A5)

artelse commented 3 months ago

Indoor or outdoor makes no difference, Firefox works just fine. Interestingly, Google Maps and Openstreetmap don't work, but mylocation.org's browser geolocation test, after the second attempt works and shows gps icon in the status bar. Odd, why?

plateaukao commented 3 months ago

I don't know. It works for me either on openstreetmap, google map or mylocation.org. And... web sites and javascript, they are not my thing; I am not quite sure how it works. Try kill EinkBro process and launch it again. :) Maybe it helps.

artelse commented 3 months ago

I did all that, so am unsure how to solve the issue. It might be how a website uses the geo-api? I will use Firefox for mapping although I much prefer Einkbro! Thanks for the help and your time! Edit: cannot be javascript api, it works on your A5. Puzzled..