I’m a little confused about how to display current location in a MapView. The MapView API has the showsUserLocation prop, which says the following:
" NOTE : You need to add
NSLocationWhenInUseUsageDescription key in Info.plist to enable geolocation, otherwise it is going to fail silently ! You will also need to add an explanation for why you need the users location against
NSLocationWhenInUseUsageDescription in Info.plist. Otherwise Apple may reject your app submission."
Additionally, there’s the expo Location API, which allows me to get the current location via getCurrentPositionAsync. I’m not quite sure how these play together So here are my questions:
How do I update the Info.plist in Expo? I’d prefer not to eject so I’m wondering if there’s a way to do this simply.
Assuming I can use showsUserLocation, what happens if I publish this? Will it break? Silently fail?
Assuming I can’t use showsUserLocation and I instead need to roll my own location marker using the Location API, will I still have issues with Apple possibly rejecting the app?