How to get sim card contacts in ionic framework or

2019-06-06 03:13发布

I am trying to get All contact from Phone and Sim card in ionic frame work.I got all contact from Phone but not from SIM

I tried Link for NGCORDOVA CONTACTS

but from this not able to get SIM contacts I tried to get sim info by SIM INFO PLUGIN

from this got all info but not sim contacts. what to do please help.

1条回答
聊天终结者
2楼-- · 2019-06-06 03:54

Using following plugin DeviceInformation plugin. It is used to get the following information from your device and sim.

  1. Your unique Device ID
  2. Phone Number (if it is stored in your SIM card)
  3. Country ISO of your phone network provider
  4. Name of your network provider
  5. Your SIM Card Serial number
  6. Country ISO of your SIMcard
  7. Name of your SIM card mobile operator
  8. E-mail/Phone number used by apps listed in your Settings > Accounts & Sync list

var deviceInfo = cordova.require("cordova/plugin/DeviceInformation");
deviceInfo.get(function(result) {
        console.log("result = " + result);
    }, function() {
        console.log("error");
    });

查看更多
登录 后发表回答