Skip to main content

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.

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.


$ npm install cordova-plugin-request-location-accuracy $ npm install @ionic-native/location-accuracy $ ionic cap sync

Supported Platforms#

  • Android
  • iOS



Learn more about using Ionic Native components in React


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    this.locationAccuracy.request(this.locationAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY).then(      () => console.log('Request successful'),      error => console.log('Error requesting location permissions', error)    );  }