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

As a user, I'd like to click/touch a button to give my location #39

Open
1 task
chrisbeaman opened this issue May 29, 2015 · 5 comments
Open
1 task

Comments

@chrisbeaman
Copy link
Member

Description

We would like to provide a location button that gives the app the user's location when the user touches/clicks it.

Definition of Done

  • The user clicks/touches the location button and their location is displayed in text below the input field as "Near: 123 Main St, Huntsville"

See example: Click the location button in this wireframe: http://lrdy2r.axshare.com/#p=home

Technical Details

Wireframe: http://lrdy2r.axshare.com/#p=home

In this wireframe, the "give location" button is to the right of the input box containing the words "Enter an address"

The user would touch/click this button and the app would get the user's location via some native function of their device, or some other mechanism. You'd need to figure out how to achieve this for Apple iOs, Android, Chrome, Firefox, Internet Explorer, Safari, etc. Is there a single method that works for all browsers/OS'?

@dannagle
Copy link

dannagle commented Jun 8, 2015

This happens on initial load. Most browsers remember if you've given consent. I suppose a button could be added to re-trigger the share location prompt. I don't normally see that.

@dannagle dannagle reopened this Jun 8, 2015
@chadxz
Copy link

chadxz commented Jun 8, 2015

Giving consent is only "remembered" when visiting the page via https. If we want to delay requesting consent until the user presses a ui button, it would be trivial to do, as the request for consent doesn't actually happen until we try to get the location via the api.

@dannagle
Copy link

dannagle commented Jun 8, 2015

My Chrome for Android and Opera on desktop remembered consent on the prototype, and it is not https. Firefox has a pop-up asking to always grant consent or just once. Regardless, this can be easily moved to a button.

@dustywusty
Copy link

the value proposition of the location button is less about giving initial consent and more about updating your position after having moved about with a mobile device

eg.

  1. i've used the button once and found things around me
  2. i put mobile safari in the background, bc i'm taking a phone call
  3. i now walk a mile down the street
  4. i bring mobile safari back into the foreground
  5. i want to see what is around with me without refreshing the entire page

@dannagle
Copy link

App could periodically poll your location and then update itself without interaction. I know Android UI guidelines frown upon refresh buttons.

I'll add a button. We've debated this longer than it takes to add it. It makes debug easier. If we eventually don't need it, we can hide it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants