I am using cordova plugin cordova-plugin-sim2 for get sim data.It's working fine with dual sim device but when trying to used with single sim device it's showing all data except mobile number.It's showing empty string "" not return mobile number.
Asked
Active
Viewed 913 times
1 Answers
1
As the docs mention:
Notice: the content of phoneNumber is unreliable (see this and this article).
Getting the phone-number (MSISDN) is not very reliable. The original sim plugin docs (the one this one was forked from) mention that that phone number will be an empty string in case it could not be determined:
Sometimes phoneNumber is only an empty string.

David
- 7,387
- 3
- 22
- 39