Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Is it possible to get the user's (more accurately, the Device's or SIM's) home country?

$
0
0

I have an issue where people enter their mobile number in their local format (for example, US users would enter "(123) 456-7890" or similar) into my App, but I need to know what country that number is from to correctly format it to search the database (where it needs to be standard international format like "+11234567890" in the DB).

Is there some way to get the home country of the current number. This isn't necessarily the home country of the hardware either - I have an iPhone from New Zealand that's unlocked, so when I have a US sim in it, I need to know "United States" not "New Zealand" because that's the number I have to format. Really, it's the home country of the SIM I guess?

Possible?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>