Ionic-native geolocation error on iOS device

I am using Ionic 5 with @ionic-native/geolocation version 5.28.0 and have added the pList messages.

On loading my app I get the error “Origin does not have permission to use Geolocation service” with Code 2. If then navigate away then back to the home page it then asks for permission to allow geolocation and works fine. It is just erroring on the intial load of the app. Any help would be much appreciated :slight_smile:

I added the platform.ready() function and it worked. Hope this can be helpful for somebody :slight_smile:

this.platform.ready().then(() => {