[
https://issues.apache.org/jira/browse/CB-3362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Kim updated CB-3362:
------------------------
Assignee: Lorin Beer (was: Tim Kim)
> Native geolocation doesn't work anymore from 1.5.0 version
> -----------------------------------------------------------
>
> Key: CB-3362
> URL: https://issues.apache.org/jira/browse/CB-3362
> Project: Apache Cordova
> Issue Type: Bug
> Components: BlackBerry
> Reporter: Ariel Falduto
> Assignee: Lorin Beer
> Labels: geolocation
>
> Hi guys, im not uderstand why native getCurrentPosition stop working from
> 1.5.0 version of phonegap ... probably you are making test with html5
> built-in getCurrentPosition in OS6+ ?? ... its a really huge mistake take a
> look ...
> the interfaces definitions / action names (and arguments too)...
> Phonegap 2.7:
> javascript:
> {code}
> exec(win, fail, "Geolocation", "getLocation", [options.enableHighAccuracy,
> options.maximumAge]);
> {code}
> java:
> {code}
> protected static int getAction(String action) {
> if ("watchPosition".equals(action)) return ACTION_WATCH;
> if ("stop".equals(action)) return ACTION_CLEAR_WATCH;
> if ("getCurrentPosition".equals(action)) return ACTION_GET_POSITION;
> if ("shutdown".endsWith(action)) return ACTION_SHUTDOWN;
> return -1;
> }
> {code}
> of course ... it never match the action specified ...
> but in Phonegap 1.5.0:
> javascript:
> {code}
> Cordova.exec(null, errorCallback, "Geolocation", "getCurrentPosition", [id,
> maximumAge, timeout, enableHighAccuracy]);
> {code}
> java:
> {code}
> protected static int getAction(String action) {
> if ("watchPosition".equals(action)) return ACTION_WATCH;
> if ("stop".equals(action)) return ACTION_CLEAR_WATCH;
> if ("getCurrentPosition".equals(action)) return ACTION_GET_POSITION;
> if ("shutdown".endsWith(action)) return ACTION_SHUTDOWN;
> return -1;
> }
> {code}
> it will be great to fix it soon ...
> thks !
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira