
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@scedast/react-native-sim
Advanced tools
Read SIM card data from devices, like phone numbers and carrier names
React Native plugin to get the device's SIM data (carrier name, mcc mnc, country code, phone number, etc)
import Sim from '@scedast/react-native-sim';
// Includes all available SIM card information
Sim.getSimInfo();
Sim.getTelephoneNumber();
Sim.getCarrierName();
Sim.getCountryCode();
Install Extras
/ Android Support Library
from Android SDK.
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"/>
FAQs
Read SIM card data from devices, like phone numbers and carrier names
The npm package @scedast/react-native-sim receives a total of 5 weekly downloads. As such, @scedast/react-native-sim popularity was classified as not popular.
We found that @scedast/react-native-sim demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.