flutter_network_type_plugin 0.2.5
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_CAconstant 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
speedThresholdtruly optional - speed check only runs when bothurlANDspeedThresholdare 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.2 - 2024-09-19 #
Changed #
- Fixed requesting Android permission. Read activity from ActivityPluginBinding in onAttachedToActivity.
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.