Pakete, Repositories und App-Kategorien suchen

Paketdetailsv0.0.4

esim

Flutter-Plugin zur Überprüfung der eSIM-Kompatibilität.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
45
Likes
38
Pub-Punkte
115

Paket installieren

flutter pub add esim

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Das esim-Paket ist ein Flutter-Plugin, das zur Überprüfung der eSIM-Kompatibilität auf Android- und iOS-Geräten entwickelt wurde. Es bietet Entwicklern eine einfache Möglichkeit zu ermitteln, ob ein Gerät die eSIM-Funktionalität unterstützt, wodurch Apps ihre Funktionen an die Hardwarefähigkeiten anpassen können. Das Plugin ist mit mehreren Plattformen kompatibel, darunter Web, macOS, Windows und Linux, obwohl sein primärer Einsatz in mobilen Betriebssystemen liegt. Es nutzt native APIs über Plattformkanäle, um genaue Geräteinformationen bereitzustellen. Dieses Werkzeug ist ideal für Anwendungen, die auf zelluläre Konnektivität angewiesen sind oder eSIM-Bereitstellungsdienste anbieten.

Anwendungsfälle

  • Überprüfung der eSIM-Unterstützung des Geräts zur Laufzeit
  • eSIM-spezifische Funktionen in Apps aktivieren
  • Benutzeranleitungen für eSIM-fähige Geräte bereitstellen
  • Integration von eSIM-Einrichtungsflüssen in mobilen Apps
  • Unterstützung von Carrier-Konfigurationstools

Hauptmerkmale

  • Plattformübergreifende Kompatibilität
  • Einfache API für eSIM-Statusprüfungen
  • Unterstützt Android und iOS native
  • Gibt den Status der eSIM-Fähigkeit des Geräts zurück
  • Funktioniert auf Web, macOS, Windows und Linux

Geeignet für

  • Mobile-App-Entwickler, die Verbindungsfeatures entwickeln
  • Apps, die eine eSIM-Provisionierung erfordern
  • Entwickler, die auf die Mehrplattformbereitstellung abzielen
  • Werkzeuge zur Beurteilung der Kompatibilität mit Anbietern oder Geräten
  • Auf digitale SIM-Verwaltung fokussierte Apps

Hinweise

  • Eingeschränkte Funktionalität auf nicht-mobilen Plattformen
  • Die Verfügbarkeit von eSIM hängt vom Gerätehersteller ab
  • Keine Unterstützung für die Laufzeit-eSIM-Aktivierung
  • Plattformspezifisches Verhalten kann variieren
  • Erforderliche Berechtigungen unter Android und iOS

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

flutter_esim

This project contains the steps and information needed to check if your iOS device is compatible with eSIM technology. eSIM, or Embedded SIM, is a new type of SIM card that is embedded within the device itself, rather than being a physical card that can be inserted and removed. This allows for more flexibility in activating and switching between different mobile plans.

Compatibility Check:

You can integrate eSIM functionality into your iOS app, please follow these steps:

Step 1:

Request for eSIM entitlement using your developer account.

Step 2:

Apple will approve the entitlement after some time. You can check if Apple has approved the entitlement from your app profile setting

Step 3:

Download the App Dev and Distribution profile (By selecting eSIM entitlement as Step #2).

Step 4:

Update your Info.plist with below keys and value

<key>CarrierDescriptors</key>
<array>
<dict>
<key>GID1</key>
<string>***</string>
<key>GID2</key>
<string>***</string>
<key>MCC</key> //Country Code
<string>***</string>
<key>MNC</key> //Network Code
<string>***</string>
</dict>
</array>

You can find GID1, GID2, MCC, and MNC for eSIM compatibility from the following sources:

Mobile network operators -

You can contact your mobile network operator and ask for the GID1, GID2, MCC, and MNC for your specific eSIM card. Online eSIM providers - Many online eSIM providers, such as Truphone, Twilio, and Unlocator, will provide the GID1, GID2, MCC, and MNC for their eSIM cards on their websites. Device manufacturers - Some device manufacturers, such as Apple and Samsung, will provide the GID1, GID2, MCC, and MNC for their eSIM-compatible devices on their website or in the device's user manual. eSIM databases - There are online databases, such as esimdb.com, that provide information on eSIM cards and their GID1, GID2, MCC, and MNC.

It is important to note that eSIM compatibility can vary depending on the mobile network operator and device, so it is important to check with the specific provider or manufacturer for the most accurate information.

Step 5:

Add eSIM compatibility code to AppDelegate file.

main.dart
class MyApp extends StatefulWidget {
  @override
  MyAppState createState() => MyAppState();
}

class _MyAppState extends State<MyApp> {
  int isEsimCompatible = 0;

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> checkEsimCompatibility() async {
    // Platform messages may fail, so we use a try/catch PlatformException.
    try {
      isEsimCompatible = await Esim.isEsim();
    } on PlatformException {
      debugPrint('Failed to get esim compatibility.');
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('eSIM Compatibility example'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              await checkEsimCompatibility();
              Fluttertoast.showToast(
                  msg: isEsimCompatible == 1
                      ? "This device supports eSIM "
                      : 'This device does not supports eSIM',
                  toastLength: Toast.LENGTH_LONG,
                  gravity: ToastGravity.BOTTOM,
                  timeInSecForIosWeb: 1,
                  backgroundColor: Colors.grey,
                  textColor: Colors.white,
                  fontSize: 16.0);
            },
            child: const Text("Check eSIM compatibility"),
          ),
        ),
      ),
    );
  }
}

Upcoming features

  • eSIM compatibility for Android
  • eSIM installation for iOS and Android

Conclusion

With these steps, you can now check if your iOS device is compatible with eSIM, activate eSIM and switch between eSIM and physical SIM.

Referral link:

https://developer.apple.com/documentation/coretelephony?changes=latest_minor

Kategorien

Abhängigkeiten

Abhängigkeiten 1 Einträge

  • plugin_platform_interface^2.0.2

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.