@capgo/capacitor-sim 8.0.41 → 8.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @capgo/capacitor-sim
|
|
2
2
|
|
|
3
|
-
Read SIM card details in your Capacitor app, including carrier, country and network codes, with
|
|
3
|
+
Read SIM card details in your Capacitor app, including carrier, country and network codes, with multiple active subscriptions on Android.
|
|
4
4
|
|
|
5
5
|
<a href="https://capgo.app/?ref=plugin_sim"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-sim" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
6
6
|
|
|
@@ -17,10 +17,10 @@ Read SIM card details in your Capacitor app, including carrier, country and netw
|
|
|
17
17
|
|
|
18
18
|
## Key features
|
|
19
19
|
|
|
20
|
-
- **SIM info**: `getSimCards()` returns
|
|
21
|
-
- **
|
|
20
|
+
- **SIM info**: `getSimCards()` returns the available SIM records with carrier name, ISO country code, MCC and MNC.
|
|
21
|
+
- **Android subscriptions**: one entry per active subscription with its slot index and, when available, the phone number.
|
|
22
22
|
- **Permissions**: `checkPermissions()` and `requestPermissions()` for phone state access on Android.
|
|
23
|
-
- **iOS**: carrier data from Core Telephony. On iOS 16.4 and later the system may return `--` or empty values.
|
|
23
|
+
- **iOS**: carrier data from Core Telephony. On iOS 16.4 and later the system may return `65535`, `--` or empty strings instead of real values.
|
|
24
24
|
- **Platforms**: iOS and Android. Not available on web.
|
|
25
25
|
|
|
26
26
|
## Documentation
|
|
@@ -28,7 +28,7 @@ import java.util.List;
|
|
|
28
28
|
)
|
|
29
29
|
public class SimPlugin extends Plugin {
|
|
30
30
|
|
|
31
|
-
private final String pluginVersion = "8.0.
|
|
31
|
+
private final String pluginVersion = "8.0.42";
|
|
32
32
|
|
|
33
33
|
static final String READ_PHONE_STATE = "readPhoneState";
|
|
34
34
|
static final String READ_PHONE_NUMBERS = "readPhoneNumbers";
|
|
@@ -4,7 +4,7 @@ import Foundation
|
|
|
4
4
|
|
|
5
5
|
@objc(SimPlugin)
|
|
6
6
|
public class SimPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
7
|
-
private let pluginVersion: String = "8.0.
|
|
7
|
+
private let pluginVersion: String = "8.0.42"
|
|
8
8
|
public let identifier = "SimPlugin"
|
|
9
9
|
public let jsName = "Sim"
|
|
10
10
|
public let pluginMethods: [CAPPluginMethod] = [
|