telephony_info_plus 0.0.2 copy "telephony_info_plus: ^0.0.2" to clipboard
telephony_info_plus: ^0.0.2 copied to clipboard

It a package that returns sim infos

Telephony Info Plus Plugin #

A Flutter plugin to retrieve detailed SIM information, supporting the Android platform. The plugin provides various details about the SIM cards on a device, including:

  • providerName
  • mcc (Mobile Country Code)
  • mnc (Mobile Network Code)
  • isSimRoaming
  • isESim
  • signalType
  • signalStrength

Features #

Android #

  • Returns all SIM information for devices running Android 6.0 (API level 23) or higher.
  • signalType and signalStrength are available only on Android 10+ due to API limitations.
  • Requires the following permissions in the AndroidManifest.xml:
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    
  • Important: You must request READ_PHONE_STATE and ACCESS_FINE_LOCATION permissions at runtime before using the plugin. Example:
    import 'package:permission_handler/permission_handler.dart';
    
    Future<void> requestPermissions() async {
      await [
        Permission.phone,
        Permission.location
      ].request();
    }
    

iOS #

Due to iOS restrictions, this plugin does not support iOS 16+ and works only on Android devices. For more details, refer to Apple Documentation.

Installation #

Add the following to your pubspec.yaml:

dependencies:
  telephony_info_plus: ^0.0.1

Then, run:

flutter pub get

Usage #

Import the plugin in your Dart code:

import 'package:telephony_plus/telephony_plus.dart';

Retrieve the SIM information:

List<TelephonyInfo>? getSimInfo() async {
  try {
    return await _telephonyPlusPlugin.getSimInfos();
  } catch (e) {
    print(e);
  }
}

Platform-Specific Notes #

Android #

  • API Level: Full functionality is available only on devices running Android 6.0 or newer.
  • Multiple SIMs: For devices with multiple SIM cards, the plugin returns an array of SIM information.

Limitations #

  • signalType and signalStrength are supported only on Android 10+.
  • Due to iOS restrictions, this plugin does not support iOS 16+ and works only on Android devices.

License #

MIT License. See LICENSE for details.

4
likes
130
points
95
downloads

Publisher

unverified uploader

Weekly Downloads

It a package that returns sim infos

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on telephony_info_plus

Packages that implement telephony_info_plus