Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 90b5a0d

Browse files
authored
Create README.md
1 parent 4b0c88d commit 90b5a0d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# react-native-sim
2+
React Native plugin to get the device's SIM data (carrier name, mcc mnc, country code, phone number, etc)
3+
4+
## Installation
5+
6+
## Supported Platforms
7+
8+
- Android
9+
- [wip] iOS
10+
11+
## Usage
12+
13+
## Android setup
14+
15+
### Requirements
16+
17+
Install `Extras` / `Android Support Library` from Android SDK.
18+
19+
### Permissions
20+
21+
This plugin uses two different Android APIs to receive SIM data:
22+
- `TelephonyManager` (since API level 1)
23+
- `SubscriptionManager` (since API level 22)
24+
25+
Since Android 6 (API level 23) a few methods of `TelephonyManager` require permission `READ_PHONE_STATE`.
26+
27+
All methods of `SubscriptionManager` require permission `READ_PHONE_STATE`.
28+
29+
`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`).
30+
31+

0 commit comments

Comments
 (0)