Socket
Book a DemoInstallSign in
Socket

@scedast/react-native-sim

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scedast/react-native-sim

Read SIM card data from devices, like phone numbers and carrier names

0.3.2
latest
Source
npmnpm
Version published
Weekly downloads
5
25%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-sim

React Native plugin to get the device's SIM data (carrier name, mcc mnc, country code, phone number, etc)

Usage

import Sim from '@scedast/react-native-sim';

// Includes all available SIM card information
Sim.getSimInfo();
Sim.getTelephoneNumber();
Sim.getCarrierName();
Sim.getCountryCode();

Supported Platforms

  • Android

Usage

Android setup

Requirements

Install Extras / Android Support Library from Android SDK.

Permissions

This plugin uses two different Android APIs to receive SIM data:

  • TelephonyManager (since API level 1)
  • SubscriptionManager (since API level 22)

Since Android 6 (API level 23) a few methods of TelephonyManager require permission READ_PHONE_STATE.

All methods of SubscriptionManager require permission READ_PHONE_STATE.

SubscriptionManager is able to access multiple SIM data. The return object of this cordova plugin provides the details of the available sim cards in an array (cards).

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

Keywords

react-component

FAQs

Package last updated on 23 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.