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

cannot pass in options to Geolocation.getCurrentPosition() #34

Closed
jasonwaters opened this issue Mar 8, 2016 · 3 comments
Closed

cannot pass in options to Geolocation.getCurrentPosition() #34

jasonwaters opened this issue Mar 8, 2016 · 3 comments

Comments

@jasonwaters
Copy link

This code fails:

let options = {maximumAge: 0, timeout: 10000, enableHighAccuracy: true};
Geolocation.getCurrentPosition(options).then(...)

Gives an error about the first parameter not being a function. Am I doing it wrong?

@tlancina
Copy link
Contributor

tlancina commented Mar 8, 2016

Thanks for the issue, looks like it might be a bug. The @Cordova decorator should have callbackOrder: 'reverse'.

@thiphariel
Copy link

Sorry to "reopen" that, but when this fix will be pushed to npm ?

Thanks.

@ihadeed
Copy link
Collaborator

ihadeed commented Mar 14, 2016

@thiphariel
Not sure when are they planning to publish a new release to NPM.

But here is an unofficial release that includes that fix:
https://www.dropbox.com/s/wizomnu75jv30yz/ionic-native-nightly-dist.zip?dl=0

Please note that it might be unstable due to some untested plugins.

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

4 participants