[
https://issues.apache.org/jira/browse/CB-12065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-12065.
-----------------------------
Resolution: Won't Do
closing as won't do since the issue is unclear
> How to get latitude and longitude with ionic framework in Android
> -----------------------------------------------------------------
>
> Key: CB-12065
> URL: https://issues.apache.org/jira/browse/CB-12065
> Project: Apache Cordova
> Issue Type: Bug
> Components: Ionic
> Environment: Android
> Reporter: Rachita Mathur
> Priority: Major
>
> Hi Team
> I am not able to fetch latitude longitude in android using the below code.
> The code is working fine for IOS.
> var options = { timeout: 3000, enableHighAccuracy: true };
> document.addEventListener('deviceready', function () {
> navigator.geolocation.getCurrentPosition(onSuccess, onError, options);
> });
> function onSuccess(position)
> {
> latvalue = position.coords.latitude;
> lngvalue = position.coords.longitude;
> timestamp = position.timestamp;
> alert(latvalue);
> }
> function onError(error)
> {
> alert(error);
> }
> Please suggest what need to be done.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]