0.1.5 • Published 10 months ago

cap-sim-info v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

vinteum.com

cap-sim-info

Get SIM Card Info. For Capacitor.

npm:

https://www.npmjs.com/package/cap-sim-info

Install

npm install cap-sim-info
npx cap sync

Android Manifest

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

API

Sample:

import { SimInfo } from 'cap-sim-info';

const sims = await SimInfo.getSimInfo();

console.log(sims);

getSimInfo()

getSimInfo() => Promise<{ phoneNumber: string | null; }>

Returns:

{
    "simInfo": [
        {
            "carrierName": "VIVO",
            "displayName": "VIVO",
            "countryIso": "br",
            "iccId": "895510953571576",
            "simSlotIndex": 0,
            "phoneNumber": "+5546999XXXXXX"
        },
        {
            "carrierName": "Vinteum Telecom",
            "displayName": "Vinteum Telecom",
            "countryIso": "usa",
            "iccId": "895506474390",
            "simSlotIndex": 1,
            "phoneNumber": "+14912813"
        }
    ]
}
0.0.23

10 months ago

0.1.0

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.5

10 months ago

0.0.22

10 months ago

0.0.20

11 months ago

0.0.21

11 months ago

0.0.11

11 months ago

0.0.12

11 months ago

0.0.13

11 months ago

0.0.14

11 months ago

0.0.15

11 months ago

0.0.16

11 months ago

0.0.17

11 months ago

0.0.18

11 months ago

0.0.19

11 months ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago