You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2015/12/29 07:27:49 UTC
[jira] [Comment Edited] (CB-8443) nothing happens if GPS is not
allowed by the app...
[ https://issues.apache.org/jira/browse/CB-8443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15073539#comment-15073539 ]
Sergey Grebnov edited comment on CB-8443 at 12/29/15 6:27 AM:
--------------------------------------------------------------
Since we rely on native browser implementation we can't control I will document this behavior on Android and recommend specifying timeout when using this plugin.
PS. As per W3C spec the following defaults are used, this could be a reason why we don't have callback called as timeout value is large
{code}
dictionary PositionOptions {
boolean enableHighAccuracy = false;
[Clamp] unsigned long timeout = 0xFFFFFFFF;
[Clamp] unsigned long maximumAge = 0;
};
{code}
was (Author: sgrebnov):
Since we rely on native browser implementation we can't control I will document this behavior on Android and recommend specifying timeout when using this plugin.
> nothing happens if GPS is not allowed by the app...
> ---------------------------------------------------
>
> Key: CB-8443
> URL: https://issues.apache.org/jira/browse/CB-8443
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Geolocation
> Affects Versions: 3.5.0
> Environment: moto G android 4.4.4
> Reporter: clement bidon
> Labels: android, triaged
>
> to goe the error: disable "ALL LOCATION SERVICE" on the phone.
> call "getCurrentPosition" or "watchPosition" functions without any timout.
> The "onError" function should be called with "PositionError.PERMISSION_DENIED" or with "PositionError.POSITION_UNAVAILABLE", BUT IT S NOT THE CASE: --> nothing happens.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org