如何在离子框架或cordova中获得SIM卡接触 [英] How to get sim card contacts in ionic framework or cordova

查看:188
本文介绍了如何在离子框架或cordova中获得SIM卡接触的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图通过电话和SIM卡在离子帧工作中获得所有联系。我从电话获得了所有联系,但没有来自SIM卡

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

我试过 NGCORDOVA联系人的链接

但是从此不是能够获得SIM卡联系人
我试图通过 SIM INFO PLUGIN <来获取SIM卡信息

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

从中得到所有信息但不是SIM联系人。
怎么办请帮忙。

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

推荐答案

使用以下插件 DeviceInformation插件
它用于从您的设备和SIM卡获取以下信息。

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


  1. 您的唯一设备ID

  2. 电话号码(如果它存储在您的SIM卡中)

  3. 您的电话网络提供商的国家/地区ISO

  4. 您的网络名称提供商

  5. 您的SIM卡序列号

  6. SIM卡的国家ISO

  7. 您的SIM卡手机名称运营商

  8. 您的设置>帐户&中列出的应用使用的电子邮件/电话号码同步列表

  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");
    });

这篇关于如何在离子框架或cordova中获得SIM卡接触的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆