Questions tagged [mobile-country-code]

ISO-3166 standard defining 2 and 3 character identifiers for each country in the world.

ISO-3166 standard defining 2 and 3 character identifiers for each country in the world.

69 questions
1
vote
1 answer

when iPhone Xs,12.1 has only eSIM, How I can get mobileCountryCode?

I did not find mobile Country Code from iPhone that using only eSIM in iphone Xs,12.1 OS. For "physical sim" following code is working fine but facing problem when installed only eSIM CTTelephonyNetworkInfo *netInfo = [[CTTelephonyNetworkInfo alloc]…
Bisnu Saha
  • 78
  • 2
  • 8
1
vote
0 answers

stock messages app not showing country code in "Send To" called using Intent call?

I am creating an android app. It having a function that, if the user clicks a button it will open the messaging app with recipient number with country code. The Intent call which includes country code also. But the destination stock messaging app…
1
vote
2 answers

Picking a number from a contact but removing the country code

I am able to get the contact phone number on button click then transfer it to an EditText, but I want only to get the result without the country code. Exemple : +33 xx xx xx xxx becomes xx xx xx xxx Is there a way I can achieve this? The following…
esQmo_
  • 1,464
  • 3
  • 18
  • 43
1
vote
1 answer

Predict/Identify country codes for phone numbers

I have list of mobile phone numbers from different countries from Android contacts. Some of these contacts have country codes while some of them don't. So, a solution could be: Get all supported country codes of the world Loop a number with all the…
muneikh
  • 2,067
  • 5
  • 25
  • 59
1
vote
1 answer

CoreTelephony framework returns 404 as MCC (mobile country code) in iPhone

I am using the below code snippets to find out the MCC (mobile country code) of the user's iPhone. Details like carrier name, iSO code and MNC are coming fine but the MCC is always 404 instead of +01 (or USA) or +91(for India). …
A for Alpha
  • 2,904
  • 8
  • 42
  • 76
1
vote
2 answers

Getting device's country code/phone number

How can my app programmatically obtain the device's country/area code? When I receive an incoming SMS, the sender number always includes the country/area code. However, for my app, I'm letting the user manually enter his/her phone number, but I need…
user1118764
  • 9,255
  • 18
  • 61
  • 113
1
vote
1 answer

MobileCOuntryCode iOS not working

From the below post i am trying to detect the SIM in iPhone Detect if Sim Card is available in iPhone programmatically I tried the same code provided by you but it always return me (null). I have added core telephony framework and imported…
Saleel
  • 11
  • 4
0
votes
1 answer

What is the best way of retrieving one to one relational data in Android?

The question is when I get the country sim code from android device I want to get the country number from a database or from a text file. Unfortunately as I know (so sadly) We cannot get a country code from the api as number like 44 31 33 whatever…
akd
  • 6,538
  • 16
  • 70
  • 112
0
votes
0 answers

Is there always padding in an IMSI to make the PLMN (MCC + MNC) always 6 digits

I'm wondering if I can always decode the PLMN as the first 6 digits of the IMSI, or could this potentially include the first digit of the MSIN in the case of a 2 digit MNC? If the PLMN is always the first 6 digits, then for a 2 digit MNC is the…
java
  • 11
  • 3
0
votes
1 answer

Xcode 14+ serviceSubscriberCellularProviders mobileCountryCode return numbers instead of string?

i am trying to get mobileCountryCode from device sim operator. the results i am getting from mobileCountryCode is 6553565535 which should be US or FR here is my objective-C code CTTelephonyNetworkInfo *networkInfo = [[CTTelephonyNetworkInfo alloc]…
Kodr.F
  • 13,932
  • 13
  • 46
  • 91
0
votes
0 answers

App is crashing while phone authentication before sending OTP to mobile

A mobile app that is connected to firebase firestore. App crashes every time I try to send an OTP code to mobile. Signup3rdClass.java @Override protected void onCreate(Bundle savedInstanceState) { …
0
votes
1 answer

Determine Phone number country code given just the phone number

As I type this question, I am skeptical there may be no answer? I am building a flutter app using firebase as the backend. There is a feature in my app that allows a user to add friends to the app from their contact list. Now I am struggling because…
0
votes
1 answer

How to get currency code, currency name, country name, country code ISO2 ISO3 in a Arraylist?

Hi all i searched a lot to find a way to get a list of all the codes that belongs to a country like Country name, country code Phone code, currency name currency code. I was not able to find the full list. So i made one and wanted to share with you…
0
votes
1 answer

Android CountryCodePicker set country to null

I use the CountryCodePicker from the CountryCodePickerProject by hbb20. I get the User's data from the DataBase, and sometimes for whatever reason the User has "" (empty string) saved as their country. I use this Picker to edit their country, and if…
Avramo
  • 143
  • 9
0
votes
3 answers

Android: Validate Phone Number Length by COUNTRY

How can we validate the length of a mobile number by COUNTRY? (Knowing that the country code might or might not be part of the number) Length may vary per country, meaning there should be a length range or pattern validator. Example: +1 222 2222…