AlGoreRhythm AlGoreRhythm - 11 months ago 47
C# Question

Am I understanding Region Info correctly?

So I don't necessarily need geocoding permissions, I don't care what the users city or location is, I just want to get the users country, or even continent. I found this guy in Xamarin documentation


Which when I test and access
I get back
. Which I am in the United States, so that works. But I am beginning to question whether or not this is doing what I think it is. Is
something I can access to get a users location? The reason I am questioning this is, when I ran my app on iOS simulator on Mac (windows (Xamarin iOS Windows Simulator, not Windows OS) doesn't let you do a custom location for some reason), I had changed the lat/long values to be in Australia. But my value was still
. I can chalk that up to being a simulator, perhaps that
uses some other process and doesn't get affected by the custom lat/long values on simulator. I just want to make sure this is doing what I think it is.

Answer Source

RegionInfo is a user configurable value - look in Settings -> General -> Language and Region.

If you want to know the user's physical location, you can

1. use GPS
2. ask them
3. try IP geolocation