dpa99c / cordova-plugin-request-location-accuracy

Cordova/Phonegap plugin for Android and iOS to request enabling/changing of Location Services by triggering a native dialog
96 stars 62 forks source link

Not working in Ionic 3 #64

Closed borjalo closed 5 years ago

borjalo commented 5 years ago

I'm trying to use it in an Ionic 3 application, but it does not enter the function.

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(

            // If request succesful
            () => {
dpa99c commented 5 years ago

Please use the example project for a known working reference of how to use the plugin.

If your issue explicitly relates to the Ionic Native Typescript wrapper for this plugin then please raise the issue against Ionic Native.