Skip to content

Commit 0c378d9

Browse files
Handle OS-level permission change (#109)
1 parent 9098051 commit 0c378d9

File tree

1 file changed

+33
-7
lines changed

1 file changed

+33
-7
lines changed

index.html

+33-7
Original file line numberDiff line numberDiff line change
@@ -745,13 +745,39 @@ <h2>
745745
</li>
746746
</ol>
747747
</li>
748-
<li>If acquiring a position fails:
749-
<ol>
750-
<li>[=Call back with error=] passing |errorCallback|
751-
and
752-
{{GeolocationPositionError/POSITION_UNAVAILABLE}}.
753-
</li>
754-
</ol>
748+
<li>If acquiring a position fails because of one of the
749+
following reasons:
750+
<dl class="switch">
751+
<dt>
752+
Underlying system denies permission:
753+
</dt>
754+
<dd>
755+
<p>
756+
[=Call back with error=] passing |errorCallback|
757+
and
758+
{{GeolocationPositionError/PERMISSION_DENIED}}.
759+
</p>
760+
<aside class="note" title=
761+
"Browser permission VS OS permission">
762+
<p>
763+
On certain platforms, there can be a
764+
circumstance where the user has
765+
[=permission/granted=] the user agent
766+
permission to use Geolocation, but the permission to
767+
access location services has been denied at the
768+
OS level.
769+
</p>
770+
</aside>
771+
</dd>
772+
<dt>
773+
Data acquisition error:
774+
</dt>
775+
<dd>
776+
[=Call back with error=] passing |errorCallback|
777+
and
778+
{{GeolocationPositionError/POSITION_UNAVAILABLE}}.
779+
</dd>
780+
</dl>
755781
</li>
756782
</ol>
757783
</li>

0 commit comments

Comments
 (0)