Overview
A lightweight Flutter package for detecting VPN connection status across multiple platforms. It provides a simple API to check whether a device is currently connected to a VPN, enabling apps to respond dynamically to network conditions. Designed for developers who need reliable and consistent VPN status detection without complex setup. Works on Android, iOS, macOS, Windows, and Linux, making it ideal for cross-platform applications requiring network awareness.
Use cases
- Detecting active VPN connections in real-time
- Enabling or disabling features based on VPN status
- Improving security by verifying network integrity
- Supporting geo-restricted content access logic
- Monitoring network environment changes
Key features
- Cross-platform compatibility
- Minimal API surface
- Lightweight and fast
- Supports Android, iOS, macOS, Windows, and Linux
- Simple boolean result for VPN status
Suitable for
- Network-aware applications
- Security-focused apps
- Geo-location services
- Streaming or gaming apps with region checks
- Apps requiring dynamic feature toggling
Considerations
- Relies on platform-specific system APIs
- May not detect all custom or third-party VPNs
- No runtime configuration options
- Limited to checking connection status, not managing VPNs
- Accuracy depends on OS-level implementation