Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geolocation should be automatic on mapper frontend #1909

Open
spwoodcock opened this issue Nov 22, 2024 · 2 comments
Open

Geolocation should be automatic on mapper frontend #1909

spwoodcock opened this issue Nov 22, 2024 · 2 comments
Assignees
Labels
bug Something isn't working effort:low Likely a few hours frontend Related to frontend code priority:high Should be addressed as a priority testing:ready Ready for testing

Comments

@spwoodcock
Copy link
Member

Describe the bug

  • We avoided making geolocation automatic on the management frontend, as people only viewing the project wouldn't want this.
  • The mapper frontend is specific to mapping, and the user will almost always want to geolocate.
  • Current UX isn't great, where the user is expected to click a button - it's not intuitive like other map apps.

Solution

  • Automatically start the geolocation when the mapnow page is loaded.
@manjitapandey
Copy link
Contributor

When the mapnow page is loaded, the geolocation is on by default if I turn on my location beforehand. But when location is off, the chrome browser doesn't ask for the access rather shows the error message saying geolocation is denied.
I don't think this should be expected. Can we do anything that browser ask for permission instead of error message without asking? Image

@NSUWAL123
Copy link
Contributor

There are two cases when the user device location is turned off:

  1. Turning geolocation on via button click (implemented in management frontend)
    If the user accesses the website for the first time and hasn't touched the permissions of the website, then the permission popup is shown. If the user has already declined the permission request prior, then geolocation denied popup will be shown.
    Image

  2. Automatic geolocation on (mapper frontend)
    Here since we automatically trigger the geolocation status to be turned on, due to security measures implemented by browsers, the permission popup will not be shown and the geolocation denied popup will be shown by the browsers by default although they are new users.

I think it's not possible to show the permission popup instead of an error. But we have to research the workarounds if there's any possibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working effort:low Likely a few hours frontend Related to frontend code priority:high Should be addressed as a priority testing:ready Ready for testing
Projects
Development

No branches or pull requests

3 participants