Overview
CrossConnectivity is a Flutter plugin that provides consistent connectivity status monitoring across mobile, web, and desktop platforms. It distinguishes between general network availability and actual real-world connection state, ensuring reliable detection of active internet access. Compatible with Android, iOS, Web, macOS, Windows, and Linux, it offers developers a unified API to handle network conditions in diverse environments. The plugin supports both Wi-Fi and cellular networks, and delivers real-time updates on connection changes.
Use cases
- Real-time app responsiveness based on connection status
- Offline mode handling in cross-platform apps
- Network health monitoring for data sync operations
- Dynamic UI updates when connectivity changes
- Ensuring secure data transmission only over active connections
Key features
- Supports all major platforms including web and desktop
- Distinguishes between connectivity and real connection state
- Real-time event emission for network changes
- Lightweight and easy to integrate
- Provides accurate connection type detection
Suitable for
- Cross-platform Flutter applications
- Apps requiring robust offline/online behavior
- Developers targeting web and desktop alongside mobile
- Applications needing precise network state awareness
Considerations
- Requires platform-specific permissions on mobile
- Web support depends on browser capabilities
- Desktop implementations may vary slightly by OS
- Not intended for low-level network diagnostics
- May require additional logic for complex network scenarios
