Shr*_*hri 5 country-codes mobile-country-code cordova
如何从mcc(移动国家/地区代码)获取拨号代码?
例如.印度拥有
404或405作为mcc各种网络运营商,+91作为标准拨号代码.
我使用的cordova-plugin-sim 插件的cordova.
当我使用window.plugins.sim.getSimInfo函数时,我通过JSON响应获取此信息(出于隐私/安全原因,我没有显示所有信息):
callState: 0
carrierName: "BSNL MOBILE"
countryCode: "in"
dataActivity: <some number>
deviceId: "<some id as integer>"
deviceSoftwareVersion: "<a 2 digit code>"
isNetworkRoaming: false
mcc: "404"
mnc: "66"
networkType: 10
phoneNumber: "<my mobile number without dial code>"
phoneType: 1
simSerialNumber: "<sim serial number, long one>"
simState: 5
subscriberId: "<subscriber Id, long one>"
Run Code Online (Sandbox Code Playgroud)
我是否需要使用其他API来使用我获得的信息来获取拨号代码window.plugins.sim.getSimInfo?
| 归档时间: |
|
| 查看次数: |
936 次 |
| 最近记录: |