パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.4

esim

eSIMの互換性を確認するためのFlutterプラグイン。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
45
いいね数
38
Pub ポイント
115

パッケージをインストール

flutter pub add esim

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

esim パッケージは、Android および iOS デバイスでの eSIM の互換性を確認するための Flutter プラグインです。開発者がデバイスが eSIM 機能をサポートしているかどうかを簡単に判断できるようにし、アプリがハードウェアの機能に応じて機能を調整できるようにします。このプラグインは Web、macOS、Windows、Linux を含む複数のプラットフォームで動作可能ですが、主な用途はモバイルオペレーティングシステムです。プラットフォームチャネルを通じてネイティブAPIを利用することで、正確なデバイス情報を提供します。このツールは、セルラー接続に依存するか、eSIMプロビジョニングサービスを提供するアプリに最適です。

用途

  • 実行時にデバイスのeSIMサポートを確認する
  • アプリでeSIM固有の機能を有効にする
  • eSIM対応デバイス向けのユーザーガイドを提供する
  • モバイルアプリにおけるeSIMセットアップフローの統合
  • キャリア構成ツールのサポート

主な機能

  • クロスプラットフォーム互換性
  • eSIM ステータスチェックの簡単な API
  • Android および iOS をネイティブにサポート
  • デバイスのeSIM機能状態を返します
  • Web、macOS、Windows、Linux で動作します

適している対象

  • モバイルアプリ開発者が接続機能を構築しています
  • eSIMプロビジョニングを必要とするアプリ
  • マルチプラットフォーム配信をターゲットとする開発者
  • キャリアまたはデバイスの互換性評価に使用するツール
  • デジタルSIM管理に焦点を当てたアプリ

注意事項

  • モバイル以外のプラットフォームでの機能制限
  • eSIM の利用可能性はデバイスのメーカーに依存します
  • 実行時eSIMの有効化に対応していません
  • プラットフォーム固有の動作は異なる場合があります
  • Android および iOS で適切な権限が必要です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

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

カテゴリー

依存関係

依存関係一覧 1 件

  • plugin_platform_interface^2.0.2

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。