You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I am thankful to you for providing a package that contains all the required network signal information in dart. The package is self sufficient to get all the necessary details about a signal. I am facing an issue and I need your help to resolve it.
Here is the code snippet of how I am fetching the telephony information.
FutureBuilder<List<TelephonyInfo?>?>(
future: _flutterTelephonyInfoPlugin.getInfo(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const Center(
child: CircularProgressIndicator(), // Show a loading indicator
);
} else if (snapshot.hasError) {
return Center(
child: Text('Error: ${snapshot.error}'), // Show an error message
);
} else if (!snapshot.hasData || snapshot.data == null) {
return const Center(
child:
Text('No telephony information available'), // Handle no data
);
} else {
// Access the telephony information
List<TelephonyInfo?>? telephonyInfo = snapshot.data;
if (telephonyInfo!.isNotEmpty) {
Map<String, String> cellIdKeyValues =
parseCellId(telephonyInfo.first?.cellId);
Map<String, String> cellSignalStrengthKeyValues =
parseCellId(telephonyInfo.first?.cellSignalStrength);
However the value of cell id which i get from your package seems to be incorrect when I checked from other sources. All the other values are matching, but the cell id seems to be a combination of cell id and LAC, and needs to be parsed but is in the form of a string. I need your help in separating the cell id, so that I get the correct value of cell id.
From your package, the value of cell ID I am getting for 4g network is 46163979. But from G-NetTrack app, the value of cell ID is 180328.
Flutter 3.13.6
Dart 3.1.3
Android Version of my Mobile 13
The text was updated successfully, but these errors were encountered:
Anshul-Raina
changed the title
Cell Id value not coming correctly
Cell Id value not coming correctly on Android 13
Nov 24, 2023
First of all, I am thankful to you for providing a package that contains all the required network signal information in dart. The package is self sufficient to get all the necessary details about a signal. I am facing an issue and I need your help to resolve it.
Here is the code snippet of how I am fetching the telephony information.
FutureBuilder<List<TelephonyInfo?>?>(
future: _flutterTelephonyInfoPlugin.getInfo(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const Center(
child: CircularProgressIndicator(), // Show a loading indicator
);
} else if (snapshot.hasError) {
return Center(
child: Text('Error: ${snapshot.error}'), // Show an error message
);
} else if (!snapshot.hasData || snapshot.data == null) {
return const Center(
child:
Text('No telephony information available'), // Handle no data
);
} else {
// Access the telephony information
List<TelephonyInfo?>? telephonyInfo = snapshot.data;
if (telephonyInfo!.isNotEmpty) {
Map<String, String> cellIdKeyValues =
parseCellId(telephonyInfo.first?.cellId);
Map<String, String> cellSignalStrengthKeyValues =
parseCellId(telephonyInfo.first?.cellSignalStrength);
However the value of cell id which i get from your package seems to be incorrect when I checked from other sources. All the other values are matching, but the cell id seems to be a combination of cell id and LAC, and needs to be parsed but is in the form of a string. I need your help in separating the cell id, so that I get the correct value of cell id.
From your package, the value of cell ID I am getting for 4g network is 46163979. But from G-NetTrack app, the value of cell ID is 180328.
Flutter 3.13.6
Dart 3.1.3
Android Version of my Mobile 13
The text was updated successfully, but these errors were encountered: