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?