'Getting Location on ios using Expo React native
I am trying to get Location of users using [expo][1]
This works perfectly fine on andriod but on ios I keep getting this error almost everytime.
Unhandled promise rejection: Error: Cannot obtain current location: Error Domain=kCLErrorDomain Code=0 "(null)"
I have tried everything but I am currently so confused on how to solve this issue. I've been at it for 5 days now. I have check every questions on stack overflow and other websites relating to this but none fixes the error. This is tested on a real device not using simulator. Please do you have any idea why this is happening? This is the code that I use:
await Location.getCurrentPositionAsync({})
Their are no options set because the options practically don't work at all. [1]: https://docs.expo.dev/versions/v44.0.0/sdk/location/#locationgetcurrentpositionasyncoptions
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
