Open rsrajan75 opened 7 years ago
getSimInfo not returning callstate in iPhone. Working perfectly in Android.
in iOS environment getSimInfo to return the CallStae.
iPhone 6
iOS 9.0+
deviceready
window.onerror
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.
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
deviceready
to fire.window.onerror
catches nothing).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.