Location Accuracy Plugin Nothing happens when I fire the function

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


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)


1 Like