Everything was working until iOS 14.1. But in iOS 14.2, when the app is run for first time getCurrentPosition always returns error saying permissions were denied by the user. Popup for requesting permission from user comes up, however getCurrentPosition does not wait for user input and errors out in couple of seconds.
Everything was working until iOS 14.1. But in iOS 14.2, when the app is run for first time getCurrentPosition always returns error saying permissions were denied by the user. Popup for requesting permission from user comes up, however getCurrentPosition does not wait for user input and errors out in couple of seconds.
Code: await Geolocation.requestAuthorization('whenInUse'); Geolocation.getCurrentPosition( (position) => { console.log(position); }, (error) => { // See error code charts below. console.log(error.code, error.message); }, { enableHighAccuracy: true, timeout: 15000, maximumAge: 10000 } );
Side Notes: