You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Riku Raisanen (JIRA)" <ji...@apache.org> on 2014/04/04 08:36:17 UTC

[jira] [Updated] (CB-6401) org.apache.geolocation plugin fails silently

     [ https://issues.apache.org/jira/browse/CB-6401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Riku Raisanen updated CB-6401:
------------------------------

    Description: 
geolocation fails silently on Android  4.4.2. After hours of debugging, I finally got it to work with the code on the dev branch for the plugin works (uses browsers geolocation instead of native one).

With the master branch code, for whatever reason the res/xml/config.xml doesn't add the feature line:
    <feature name="Geolocation"><param name="android-package" value="org.apache.cordova.geolocation.GeoBroker" /></feature>

and thus the geolocation silently fails. If I manually added the file and compiled an APK off of that, then geolocation worked again.

Geolocation is a very central feature of phone apps, I can't understand how an issue like this would go unnoticed/unfixed for so long.

  was:
geolocation fails silently on Android  4.4.2. After hours of debugging, the code on the dev branch for the plugin works (uses browsers geolocation instead of native one).

With the master branch code, for whatever reason the res/xml/config.xml doesn't add the feature line:
    <feature name="Geolocation"><param name="android-package" value="org.apache.cordova.geolocation.GeoBroker" /></feature>

and thus the geolocation silently fails. If I manually added the file and compiled an APK off of that, then geolocation worked again.

Geolocation is a very central feature of phone apps, I can't understand how an issue like this would go unnoticed/unfixed for so long.


> org.apache.geolocation plugin fails silently
> --------------------------------------------
>
>                 Key: CB-6401
>                 URL: https://issues.apache.org/jira/browse/CB-6401
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Geolocation
>    Affects Versions: 3.4.0
>            Reporter: Riku Raisanen
>
> geolocation fails silently on Android  4.4.2. After hours of debugging, I finally got it to work with the code on the dev branch for the plugin works (uses browsers geolocation instead of native one).
> With the master branch code, for whatever reason the res/xml/config.xml doesn't add the feature line:
>     <feature name="Geolocation"><param name="android-package" value="org.apache.cordova.geolocation.GeoBroker" /></feature>
> and thus the geolocation silently fails. If I manually added the file and compiled an APK off of that, then geolocation worked again.
> Geolocation is a very central feature of phone apps, I can't understand how an issue like this would go unnoticed/unfixed for so long.



--
This message was sent by Atlassian JIRA
(v6.2#6252)