Detect SIM change using PhoneGap in iOS

318 Views Asked by At

I am working on a PhoneGap iOS application which needs to use the SIM or MSISDN for it certain functionality. I want to know if there is any way I can get the certain information of the SIM like it's ID if not the mobile number or if I can know or niitfied if the SIM has been changed.

1

There are 1 best solutions below

1
On

You can't get the MSISDN or IMSI.

You can get info about the current network provider, and you can get a token that identifies the user with the network provider. You can also get notifications when either changes.

See https://developer.apple.com/library/prerelease/ios/documentation/NetworkingInternet/Reference/CoreTelephonyFrameworkReference/index.html for details