The phone number not getting in all the mobiles. why? But it shows carrier name, country code etc but not phone number.
Please tell me why this plugin not getting mobile number from all kind of android mobile. How to overcome this issue..
My coding is:
"
var dataCarrier;
function successCallback(result) {
alert(result);//give me [object][object]
alert(result['carrierName']+" carrierName");//give me 'Verizon'
alert(result['countryCode']+" countryCode");//give me 'Verizon'
alert(result['mcc']+" mcc");//give me 'Verizon'
alert(result['mnc']+" mnc");//give me 'Verizon'
alert(result['callState']+" mcc");//give me 'Verizon'
alert(result['phoneNumber']+" mob num")
dataCarrier = result['phoneNumber'];
alert(dataCarrier )
}
function errorCallback(error) {
alert(error);
}
window.plugins.sim.getSimInfo(successCallback, errorCallback);
The phone number not getting in all the mobiles. why? But it shows carrier name, country code etc but not phone number. Please tell me why this plugin not getting mobile number from all kind of android mobile. How to overcome this issue.. My coding is: " var dataCarrier;
"
Its working fine in some android mobile...
Please tell me How to solve this issue..