flutter_telephony_info

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutter telephony info

Flutter telephony plugin #





A minimal platform plugin that works through the 'Pigeon' code generator to interact with an Android device in order to retrieve information from the 'Telephony' module of the Android platform. #

Attention! This plugin works with Android version 12 and higher! #

Flutter telephony plugin gets:

name cellular service provider;
mobile network code (MNC);
mobile network generation (LTE, HSDPA, e.t.c);
mobile network radioType (5G, 4G ... 2G);
cell id (cid);
cell signal strenght.

The minimum required SDK of the application is 30
.\android\app\build.gradle
defaultConfig {

...

// minSdkVersion flutter.minSdkVersion
minSdkVersion 30

...

}
copied to clipboard
The following Android permissions are required for the plugin to work
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
copied to clipboard

Don't forget to turn on GPS #

Usage #
import 'package:flutter_telephony_info/flutter_telephony_info.dart';

final _flutterTelephonyInfoPlugin = TelephonyAPI();
List<TelephonyInfo?>? telephonyInfo;
try {
telephonyInfo = await _flutterTelephonyInfoPlugin.getInfo();
} on PlatformException {
telephonyInfo = null;
}

telephonyInfo?.first?.displayName
copied to clipboard
Changelog #
Refer to the Changelog to get all release notes.
Features and bugs #
Please file feature requests and bugs at the issue tracker.
License #
END-USER LICENSE AGREEMENT

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.