Theoretically, permission could change between checking and calling getCurrentLocation, but if I'm calling them in the same tick, ocurrence should be vastly rarer than geolocation failures.
-- Sent from my HP TouchPad
On May 5, 2014 11:25 AM, Marcos Caceres <w3c@marcosc.com> wrote:
On May 3, 2014 at 12:56:12 AM, Doug Reeder (reeder_29@yahoo.com) wrote:
> > I do, in fact, persistently store a preference "tag new notes
> with location". It's undefined initially. If the user sets it
> true, my app immediately calls the geolocation API to trigger
> the permission dialog. If the user approves, we're on the happy
> path. If the user denies permission, the preference is set to
> undefined - the user has expressed conflicting wishes.
>
> Unfortunately for my situation, if the user allows geolocation
> once, it says nothing about whether it will be allowed the next
> time. In Chrome, allowing geolocation is persistent, but in
> Firefox and Firefox OS it's not persistent unless the user clicks
> a second control.
Ok, good to know. Do you think just adding a `geolocation.permission === 'enabled'` or similar would address the use case?
Also, maybe good if we could move this back to the list?