Skip to content

Commit

Permalink
Handle OS-level permission change (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Nov 24, 2021
1 parent 9098051 commit 0c378d9
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -745,13 +745,39 @@ <h2>
</li>
</ol>
</li>
<li>If acquiring a position fails:
<ol>
<li>[=Call back with error=] passing |errorCallback|
and
{{GeolocationPositionError/POSITION_UNAVAILABLE}}.
</li>
</ol>
<li>If acquiring a position fails because of one of the
following reasons:
<dl class="switch">
<dt>
Underlying system denies permission:
</dt>
<dd>
<p>
[=Call back with error=] passing |errorCallback|
and
{{GeolocationPositionError/PERMISSION_DENIED}}.
</p>
<aside class="note" title=
"Browser permission VS OS permission">
<p>
On certain platforms, there can be a
circumstance where the user has
[=permission/granted=] the user agent
permission to use Geolocation, but the permission to
access location services has been denied at the
OS level.
</p>
</aside>
</dd>
<dt>
Data acquisition error:
</dt>
<dd>
[=Call back with error=] passing |errorCallback|
and
{{GeolocationPositionError/POSITION_UNAVAILABLE}}.
</dd>
</dl>
</li>
</ol>
</li>
Expand Down

0 comments on commit 0c378d9

Please sign in to comment.