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

Error on LocationAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY #676

Closed
junaidahmed93 opened this issue Oct 11, 2016 · 1 comment
Closed

Error on LocationAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY #676

junaidahmed93 opened this issue Oct 11, 2016 · 1 comment

Comments

@junaidahmed93
Copy link

@ihadeed Initially i was facing problem in Location Accuracy (Module has no exported member 'Location Accuracy'). This problem is now fixed, but i am getting another error after this fix
I also update ionic-native to latest but still no luck.
I am getting error

Argument of type number is not assingable to parameter of type string. (property) LocationAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY

LocationAccuracy.canRequest().then((canRequest: boolean) => {

if(canRequest) {
Error After this line
LocationAccuracy.request(LocationAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY).then(
() => console.log('Request successful'),
error => console.log('Error requesting location permissions', error)
);
}

});

@ihadeed
Copy link
Collaborator

ihadeed commented Oct 11, 2016

thanks this is now fixed and will be available shortly in the next patch release

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

2 participants