Location Accuracy


This Cordova/Phonegap plugin for Android and iOS to request enabling/changing of Location Services by triggering a native dialog from within the app, avoiding the need for the user to leave your app to change location settings manually.


ionic cordova plugin add cordova-plugin-request-location-accuracynpm install @ionic-native/location-accuracy
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEYnpm install @ionic-enterprise/location-accuracy

Supported Platforms

  • Android
  • iOS


import { LocationAccuracy } from '@ionic-native/location-accuracy/ngx';

constructor(private locationAccuracy: LocationAccuracy) { }


this.locationAccuracy.canRequest().then((canRequest: boolean) => {

  if(canRequest) {
    // the accuracy option will be ignored by iOS
      () => console.log('Request successful'),
      error => console.log('Error requesting location permissions', error)