pbakondy / cordova-plugin-sim

:cherries: A cordova plugin to get the device's SIM data (carrier name, mcc mnc, country code, telephonenumber, etc)
MIT License
163 stars 101 forks source link

how to get SIM Information in ionic cordova app showing empty string "" not return mobile number #76

Closed anuj-njoshi closed 6 years ago

anuj-njoshi commented 6 years ago

Expected behaviour

Phone number should be shown

Actual behaviour

I used cordova-plugin-sim api for getting sim information.It's works fine with dual sim phone device but when i tried to single sim device. It's shown all sim data except mobile number.

I'm seeing this behaviour on

I am using

Hardware models

Example: Samsung Galaxy S6, iPhone 6s

OS versions

Example: Android 6.4.2

I've checked these

So how can we reproduce this?

Provide the used components versions (cordova, ionic, etc). I am using Ionic v1 Provide the steps to reproduce the issue. I call window.plugins.sim.getSimInfo(successCallback, errorCallback); to retrieve sim data. Provide files, sources if available. Referring https://www.npmjs.com/package/cordova-plugin-sim2

pbakondy commented 6 years ago

check #50