TypeError: undefined is not an object (evaluating ‘navigator.geolocation.requestAuthorization’)

TypeError undefined is not an object evaluating navigator.geolocation.requestAuthorization

TypeError: undefined is not an object (evaluating ‘navigator.geolocation.requestAuthorization’)

You have to make the below configuration for IOS and Android to access the location:-

ANDROID

To access the location, you have to add the following line to your app’s AndroidManifest.xml file.


IOS

You have to include the NSLocationWhenInUseUsageDescription key in Info.plist to enable geolocation

TypeError: undefined is not an object (evaluating ‘navigator.geolocation.requestAuthorization’), navigator.geolocation.getCurrentPosition is not working, TypeError: undefined is not an object( evaluating ‘navigator.geolocation.getCurrentPosition’) in react-native-google-places-autocomplete, React Native Undefined is not an object – Geolocation

Scroll to Top