Skip to content

Handle OS permission #109

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

Merged
merged 1 commit into from
Nov 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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