PackageTrack
Sign in Get early access

vpn_connection_detector

VPN connection detection for Flutter with native iOS & Android support. Includes real-time status stream & one-time checks.

2.1.0 9.8K downloads/mo #2972 most downloaded on pub.dev bazl-E/vpn_connection_detector

What this package is like to depend on

Last release 1 months ago

06 Jul 2026

Release timing varies

gaps range from 4 weeks to 10 months

Most releases are documented

notes for 14 of 17 stable releases

Nothing withdrawn

no release was ever pulled

3 years old

17 releases · first in 2023

6 releases in the last 12 months

see the full history below

Release timeline

17 releases · Aug 2023 to Jul 2026
2024 2025 2026
Release Pre-release

Releases

latest 17
  1. 2.1.0 06 Jul 2026
    Release notes

    v2.1.0 — Android Built-in Kotlin + adaptive compileSdk (#14, #16, #17)

    Open source →
    Release notes

    Fixed

    • Kotlin Gradle Plugin (KGP) warning (#14, #17). Migrated Android to Flutter Built-in Kotlin: the plugin no longer applies kotlin-android textually, so newer Flutter (>= 3.44) no longer emits "plugins that apply Kotlin Gradle Plugin (KGP)". Kotlin is applied via pluginManager only when the toolchain doesn't apply it for us, so older Flutter still works.
    • checkReleaseAarMetadata / compileSdk failure (#16). androidx.core 1.18.0 requires compileSdk 36 (AGP 8.9.1+). compileSdk now resolves adaptively — 36 on AGP 8.9.1+, and 34 on older AGP (whose Flutter ships an older androidx.core) — so both new and old setups build.

    Changed

    • Replaced the deprecated kotlinOptions { jvmTarget } block with the top-level kotlin { compilerOptions { jvmTarget } } DSL.
    • Bumped the plugin's declared Android Gradle Plugin to 9.0.1 and Kotlin to 2.3.20; the example app is updated to AGP 9.0.1 / Kotlin 2.3.20 / Gradle 9.1.0.
    • Updated connectivity_plus to ^7.2.0.

    Compatibility

    • No minimum-SDK bump for consumers. Minimum stays wide (flutter: >=3.7.0, sdk: >=3.2.0, matching connectivity_plus 7.2.0). Existing users on older Flutter continue to work.
    Open source →
  2. 2.0.3 30 Apr 2026
    Release notes

    Added

    • Swift Package Manager (SwiftPM) support for iOS plugin - Flutter plugins now support both CocoaPods and SwiftPM simultaneously
    • Added Package.swift manifest for SwiftPM integration
    • Restructured iOS plugin to use SwiftPM directory layout (ios/vpn_connection_detector/Sources/vpn_connection_detector/)
    • Updated .gitignore to exclude SwiftPM build artifacts (.build/, .swiftpm/)

    Changed

    • Updated iOS podspec to reference new Swift source file location
    • Maintained full backwards compatibility with existing CocoaPods installations
    Open source →
  3. 2.0.2 18 Feb 2026
    Release notes

    Fixed

    • iOS App Store rejection fix: Removed NEVPNManager / NetworkExtension framework usage which requires the Network Extension entitlement (Apple Guideline 2.5.1)
    • iOS VPN detection now relies entirely on CFNetworkCopySystemProxySettings SCOPED dictionary approach, which is App Store safe and detects both system VPNs and third-party VPN apps without any special entitlements
    Open source →
  4. 2.0.1 22 Jan 2026

    Nothing published for this version

  5. 2.0.0 21 Jan 2026
    Release notes

    Added

    • Native iOS implementation using NEVPNManager for system VPNs and CFNetworkCopySystemProxySettings SCOPED dictionary for third-party VPN apps (NordVPN, ExpressVPN, ProtonVPN, etc.) — ~95% accuracy
    • Native Android implementation using NetworkCapabilities.TRANSPORT_VPN API — ~95% accuracy
    • New getVpnInfo() method to get detailed VPN information (interface name, protocol)
    • New VpnInfo class with isConnected, interfaceName, and vpnProtocol properties
    • New currentState getter 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
    Open source →
  6. 1.0.11 21 Jan 2026
    Release notes

    Changed

    • Bumped package version to 1.0.11.
    • Updated dependency: connectivity_plus -> ^7.0.0.
    Open source →
  7. 1.0.10 23 Jul 2025
    Release notes

    Fixed

    • connectivity_plus updated to 6.1.4
    Open source →
  8. 1.0.9 27 Sep 2024
    Release notes

    Fixed

    • ignore false detection by mistake in iOS 17.0 and later

    • connectivity_plus updated to 6.0.5

    Open source →
  9. 1.0.8 27 Sep 2024
    Release notes

    Fixed

    • ignore false detection by mistake in iOS 17.0 and later

    • connectivity_plus updated to 6.0.1.

    Open source →
  10. 1.0.7 25 Mar 2024
    Release notes

    Updated

    • connectivity_plus updated to 6.0.1.
    Open source →
  11. 1.0.6 12 Feb 2024
    Release notes

    Updated

    • connectivity_plus updated to 5.0.2.
    Open source →
  12. 1.0.5 17 Oct 2023
    Release notes

    Updated

    • connectivity_plus updated to 5.0.1.
    Open source →
  13. 1.0.4 27 Aug 2023
    Release notes

    Fixed

    • Improved code.
    • Updated Documentation.
    Open source →
  14. 1.0.3 22 Aug 2023
    Release notes

    Fixed

    • Fixed a bug .
    Open source →
  15. 1.0.2 21 Aug 2023
    Release notes

    Added

    • Initial release of the vpn_connection_detector package.
    • Detects VPN connection status.
    • Detects changes in VPN connectivity.
    • Allows custom time intervals for checking VPN status.
    • Designed as a singleton for efficient resource management.
    Open source →
  16. 1.0.1 21 Aug 2023

    Nothing published for this version

  17. 1.0.0 21 Aug 2023

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive