I’m trying to get the real country code E164 (for example: US = 1 Or Israel = 972) in obj-c?
for Example, The user entering his phone number: 0523333333 and if the User is from Israel i need it bring back: 97252333333 to send an SMS with nexmo.com
For now i can get the MCC (mobile country code) but its different from the real country code (Israel MCC is 425 and the real code is 972)
I think this is what you want, get the calling code from the user’s country, not from the iPhone settings. (WITHOUT having a header file)
You’ll need
CoreLocation.frameworkto run.