패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.2

sim_card_info

통신 관련 앱에 적합한 SIM 카드 정보(운영자 이름, 전화번호, 국가 코드 등)에 접근할 수 있는 Flutter 플러그인입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.7천
좋아요
29
Pub 점수
140

패키지 설치

flutter pub add sim_card_info

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

sim_card_info 패키지는 여러 플랫폼에서 통신사 이름, 전화번호, 국가 코드와 같은 SIM 카드 정보에 액세스할 수 있는 Flutter 플러그인입니다. 실시간 SIM 데이터가 필요한 통신 관련 애플리케이션을 개발하는 개발자를 위한 것입니다. Android, iOS, Web, macOS, Windows, Linux를 지원하여 광범위한 호환성을 보장합니다. 간단한 API를 통해 사용자 모바일 네트워크 정보가 필요한 앱에 쉽게 통합할 수 있습니다. 플랫폼 채널을 통해 네이티브 플랫폼 기능을 활용하며, 권한이 부여된 경우 신뢰할 수 있는 데이터를 제공합니다.

사용 사례

  • 통신 앱 개발
  • 전화번호 감지로 사용자 온보딩
  • 캐리어 기반 서비스 개인화
  • SIM 카드 검증 워크플로우
  • 모바일 네트워크 진단

주요 기능

  • 통신사 이름에 액세스
  • 전화번호 가져오기
  • 국가 코드를 제공합니다
  • 크로스 플랫폼 지원
  • 간단한 API 통합
  • 권한 인식 설계

적합한 대상

  • 통신 앱을 개발하는 개발자
  • SIM 기반 사용자 식별이 필요한 앱
  • 다중 플랫폼 모바일 애플리케이션
  • 네트워크 운용 정보가 필요한 서비스

고려 사항

  • Android 및 iOS에서 런타임 권한이 필요합니다
  • 일부 기기에서 데이터 사용 가능성이 제한됨
  • 웹 지원에는 제한 사항이 있을 수 있습니다
  • 개인정보 보호 준수 필요
  • 모든 하드웨어 구성에서 사용할 수 없습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

sim_card_info

A Flutter plugin to get SIM card information.

Features

  • Fetches SIM card information from the device.
  • Handles exceptions and returns appropriate messages.

Getting Started

Installation

Add sim_card_info to your pubspec.yaml file:

dependencies:
  sim_card_info: ^1.0.0

then run flutter pub get in your terminal.

Usage

Import
import 'package:sim_card_info/sim_card_info.dart';
Get SIM card information
final _simCardInfoPlugin = SimCardInfo();
List<SimInfo>? _simInfo;

// Retrieve SIM card information
simCardInfo = await _simCardInfoPlugin.getSimInfo() ?? [];
Handling Exceptions

In cases where retrieving information fails, especially on certain devices like iOS, utilize a try/catch block with a PlatformException:

  Future<void> initSimInfoState() async {
  List<SimInfo>? simCardInfo;
  // Platform messages may fail, so we use a try/catch PlatformException.
  // We also handle the message potentially returning null.
  try {
    simCardInfo = await _simCardInfoPlugin.getSimInfo() ?? [];
  } on PlatformException {
    simCardInfo = [];
    setState(() {
      isSupported = false;
    });
  }

  // If the widget was removed from the tree while the asynchronous platform
  // message was in flight, we want to discard the reply rather than calling
  // setState to update our non-existent appearance.
  if (!mounted) return;
  setState(() {
    _simInfo = simCardInfo;
  });
}

Permissions

refer to example directory for a complete sample app usingsim_card_info plugin.

Issues and feedback

For any issue or feedback please create an issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.

카테고리

의존성

의존성 목록 1 개

  • plugin_platform_interface^2.1.8

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.