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

Location Accuracy Plugin Nothing happens when I fire the function #55

Closed
Ramakrishna1064 opened this issue Jul 18, 2018 · 6 comments
Closed

Comments

@Ramakrishna1064
Copy link

I built the following code in my phone,no errors anywhere,But when I click on the button i need to check either device location enable or not but using below code nothing happens i am using android 7.0 version can some one help me please and i just follow this link How to programatically enable and disable GPS in Ionic Framework or Cordova

start(){

    this.locationAccuracy.canRequest().then((canRequest: boolean) => {
      if(canRequest) {
        this.locationAccuracy.request(this.locationAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY).then(() => {
            console.log('Request successful.')
          },
          error => {
            console.log('Error requesting location permissions', error)
          }
        );
      }
    });
  }
@dpa99c
Copy link
Owner

dpa99c commented Jul 18, 2018

Have you ensure the app has location authorisation before calling the code above?

Please read the documentation, in particular see the Full Android & iOS example section.

Also try building+running the example project to understand functionality of the plugin.

Please ask any further support questions on the Ionic Forums or Stackoverflow

@dpa99c dpa99c closed this as completed Jul 18, 2018
@Ramakrishna1064
Copy link
Author

Ramakrishna1064 commented Jul 18, 2018

I am using https://ionicframework.com/docs/native/location-accuracy/ is this not working ?,If not what is the use of this plugin?

@dpa99c
Copy link
Owner

dpa99c commented Jul 18, 2018

Ionic Native just provides a Typescript wrapper around the JS API of this Cordova plugin.

If you have an issue with the Ionic Native Typescript wrapper, raise it against Ionic Native.

@Ramakrishna1064
Copy link
Author

So finally is there no code for resolve my issue?

@dpa99c
Copy link
Owner

dpa99c commented Jul 18, 2018

Github issues are for reporting bugs or requesting features, not asking for help/support.

Ask on the Ionic Forum or StackOverflow.

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