Skip to content
pubscout

carrier_info

4.0.0, released 14 days ago by codenka.com

Gets network type, carrier codes, and SIM info on Android and iOS.

$ flutter pub add carrier_info
Source repository

What it does

Retrieves mobile network details, SIM insertion status, signal strength, and operator information from Android and iOS devices. It uses Pigeon for platform communication and provides unified summaries as well as platform-specific info.

AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to detect network generation like 5G or LTE in your app.
  • You need to read SIM card details or check if a SIM is inserted.
  • You need device carrier network codes and country codes.

Skip it when

  • You target iOS 16.0+ and strictly require carrier names and country codes, which Apple has deprecated.
  • You are building a web or desktop application.

Strengths

  • Provides a unified summary method across both Android and iOS.
  • Supports dual-SIM and eSIM information retrieval.
  • Gracefully handles missing permissions by returning empty fields rather than failing.

Weaknesses

  • iOS 16.0+ deprecates carrier-specific info like carrier name and country codes due to platform limitations.
  • Requires platform-specific permission setups and runtime requests.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires adding permissions to AndroidManifest.xml (such as READ_PHONE_STATE, ACCESS_FINE_LOCATION) and requesting runtime permissions.

final summary = await CarrierInfo.getSummary();
for (final sim in summary.sims) {
  print('${sim.carrierName} ${sim.mobileCountryCode}');
}

Alternatives

Packages that do the same job and could replace carrier_info.