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

getSimInfo not returning Call State in iPhone #70

Open rsrajan75 opened 7 years ago

rsrajan75 commented 7 years ago

Expected behaviour

getSimInfo not returning callstate in iPhone. Working perfectly in Android.

Actual behaviour

in iOS environment getSimInfo to return the CallStae.

I am using

Hardware models

iPhone 6

OS versions

iOS 9.0+

I've checked these

So how can we reproduce this?

Provide the used components versions (cordova, ionic, etc). async getCallState(): Promise { return new Promise( (resolve, reject) => { this.sim.getSimInfo().then( (output => { alert(JSON.stringify(output)); resolve (output.callState) }), (error => { reject (error) }) ) })
}

Provide the steps to reproduce the issue.

Provide files, sources if available.