Lattitude ,Longitude not getting on ios 11.0.0 & above in Ionic1

Lattitude ,Longitude not getting on ios 11.0.0 & above in Ionic1.

Same Issue for me.
I integrated Ionic-Native in v1.
I testet geolocation in IOS 11 on iPhone 6 and iPhone 7 Plus Geolocation only works if you click on Home Button and go Back to the Application then the Plugin get’s the Location.
It seems that the geolocation plugin not getting the right Access Rights because it asks me for User Agreement for the Geolocation.

On Android and IOS Version below 11 Geolocation works.

Are you using the plugin?

Yes !

In combination with ionic-native:

???

And you’re doing this in an Ionic 1 application???

Yes, ionic-native is as well possible with ionic v1.

I’m not sure that’s a thing with Ionic-1.

You don’t really need it for V1 at all, you can just go straight to the js I think…

you mean instead using :

this.geolocation.getCurrentPosition().then((resp) => {
 // resp.coords.latitude
 // resp.coords.longitude
}).catch((error) => {
  console.log('Error getting location', error);
});

use :

navigator.geolocation.getCurrentPosition(geolocationSuccess,
                                         [geolocationError],
                                         [geolocationOptions]);

?

Yes exactly.

For ionic v1 refer to the Cordova documentation, not the ionic native docs, they’re no use to you.

Not strictly true:

For Ionic v1 (AngularJS, Angular 1.x) support, please use version 2 of Ionic Native. See the 2.x README for usage information.

https://github.com/ionic-team/ionic-native#ionic-v1-angularjs-angular-1x-support

Ionic Native works as a stand-in for ngCordova. In many cases, the usage is identical, but we import ionic.native instead of ngCordova as our module.

https://github.com/ionic-team/ionic-native/blob/v2.x/README.md

But this is quite outdated, so using the plugin directly is not the worst idea.

Learn something new every day

I think it’s IOS greater Version 9 specific.
I testet Geolocation on IOS 9, 10 and 11.
Only on IOS 9 it works as well as on Android.
I tried to call the geolocation plugin directly but it’s the same it never comes in the timeout only if i leave the APP and come back.
Here is my Geolocation call:

                navigator.geolocation.getCurrentPosition((position) => {
                    resolve(position);
                },(error) => {
                    reject(error);
                },{
            maximumAge: 3600,
            timeout: 15000,
            enableHighAccuracy: true
        });

i tried these 3 Options :

{
            maximumAge: 3600,
            timeout: 15000,
            enableHighAccuracy: true
        }
{
            maximumAge: 3600,
            timeout: 15000,
            enableHighAccuracy: false
        }
{
            enableHighAccuracy: true,
            timeout: 5000,
            maximumAge: 600000
        }

I found the Problem in the cordova Diagnostic Plugin which i used before the Geolocation
this.$cordovaDiagnostic.isLocationAvailable().
After i removed the Diagnostic Plugin the Geolocation timeouts in the most cases.