vpn_connection_detector 2.0.1
vpn_connection_detector: ^2.0.1 copied to clipboard
VPN connection detection for Flutter with native iOS & Android support. Includes real-time status stream & one-time checks.
Changelog #
All notable changes to the vpn_connection_detector package will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Released #
2.0.1 - 2026-01-21 #
Added #
- Native iOS implementation using
NEVPNManagerfor system VPNs andCFNetworkCopySystemProxySettingsSCOPED dictionary for third-party VPN apps (NordVPN, ExpressVPN, ProtonVPN, etc.) — ~95% accuracy - Native Android implementation using
NetworkCapabilities.TRANSPORT_VPNAPI — ~95% accuracy - New
getVpnInfo()method to get detailed VPN information (interface name, protocol) - New
VpnInfoclass withisConnected,interfaceName, andvpnProtocolproperties - New
currentStategetter for accessing cached VPN state - Platform interface architecture for better maintainability
- Dart fallback for desktop platforms (macOS, Windows, Linux)
- Real-time VPN status monitoring with
NWPathMonitor(iOS) and network callbacks (Android) - Comprehensive unit tests
Changed #
- Singleton now properly resets after
dispose()is called - Stream now emits initial state immediately on subscription
- Improved VPN interface pattern matching with more VPN types (NordVPN, ProtonVPN, Tailscale, etc.)
- Updated minimum iOS version to 12.0
- Updated minimum Android SDK to 21
Removed #
- Web platform support (VPN detection is not possible in browsers)
Fixed #
- Fixed singleton not being recreatable after dispose
- Fixed stream not emitting initial state
1.0.11 - 2026-01-21 #
Changed #
- Bumped package version to
1.0.11. - Updated dependency:
connectivity_plus->^7.0.0.
1.0.9 - 2024-09-27 #
Fixed #
-
ignore false detection by mistake in iOS 17.0 and later
-
connectivity_plus updated to 6.0.5
1.0.8 - 2024-03-26 #
Fixed #
-
ignore false detection by mistake in iOS 17.0 and later
-
connectivity_plus updated to 6.0.1.