Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geolocation.getPosition() Not working #2477

Closed
anuvak26 opened this issue Apr 24, 2018 · 1 comment
Closed

Geolocation.getPosition() Not working #2477

anuvak26 opened this issue Apr 24, 2018 · 1 comment

Comments

@anuvak26
Copy link

anuvak26 commented Apr 24, 2018

I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/

Current behavior:
Getting the an empty JSON {}.
Expected behavior:
If there is an error it should return the message and error code but returing an empty JSON {}

IONIC INFO:
cli packages: (/home/webdior/.nvm/versions/node/v9.10.1/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0 

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v9.10.1
npm  : 5.6.0 
OS   : Linux 4.13

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

Any help will be appreciated

@arihantdaga
Copy link

arihantdaga commented Dec 16, 2018

In ionic 4 beta 19. using @ionic-native/geolocation@beta.

const pos = await this.geolocation.getCurrentPosition();
        console.log("Got Position"); // This is never being called. 
// Nor does it throw any error. 
// I have installed Cordova  plugin also. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants