flutter_network_type_plugin 0.2.5 copy "flutter_network_type_plugin: ^0.2.5" to clipboard
flutter_network_type_plugin: ^0.2.5 copied to clipboard

A Flutter plugin to determine network type and speed.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased] #

0.2.5 - 2024-12-26 #

Fixed #

  • Removed invalid NETWORK_TYPE_LTE_CA constant that caused build failures on Android

0.2.4 - 2024-12-26 #

Added #

  • WiFi detection support for iOS using SCNetworkReachabilityFlags.isWWAN
  • WiFi speed check with "WiFi" or "WiFi (Slow)" results based on threshold
  • 5G network detection improvements (returns immediately without speed check)
  • Network priority selection for dual-SIM devices (selects best available network)

Changed #

  • Made speedThreshold truly optional - speed check only runs when both url AND speedThreshold are provided
  • Improved cellular network type detection with additional network types (UMTS, EVDO variants, IDEN)
  • Cleaner return values (removed debug speed info from Android responses)
  • Better edge case handling for zero time intervals

Fixed #

  • Fixed timeout cancellation in speed tests
  • Fixed 4G fallback logic when retries are exhausted

0.2.3 - 2025-11-13 #

Changed #

  • Set namespace for Android library in build.gradle

0.2.2 - 2024-09-19 #

Changed #

  • Fixed requesting Android permission. Read activity from ActivityPluginBinding in onAttachedToActivity.

0.2.1 - 2024-06-19 #

Changed #

  • Update sdk: ">=3.0.0 <4.0.0".

0.2.0 - 2024-06-14 #

Fixed #

  • Method chanel bug fix.

0.1.0 - 2024-06-14 #

Fixed #

  • Fixed Resolving dependencies issue.

0.0.4 - 2024-06-14 #

Fixed #

  • Fixed androidPackage entry.

0.0.3 - 2024-06-14 #

Changed #

  • Update of Changelog.

0.0.2 - 2024-06-14 #

Added #

  • Support for custom URL and speed threshold for network speed measurement.
  • Added retry mechanism with configurable retries and delays.
  • Added example app with detailed usage instructions.

Changed #

  • Improved network type detection accuracy.
  • Updated documentation with more examples and API details.

Fixed #

  • Fixed issue with incorrect network type detection on some devices.
  • Fixed minor bugs in the example app.

0.0.1 - 2024-06-14 #

Added #

  • Initial release of flutter_network_type_plugin.
  • Basic functionality to detect network type (e.g., 4G, 3G, 2G).
  • Example app demonstrating plugin usage.