Overview
The internet_connection_checker package provides a simple and reliable way to check internet connectivity status across multiple platforms. It allows developers to detect whether a device is connected to the internet and identify slow connection conditions, enabling apps to respond appropriately—such as showing offline states or adjusting behavior. Built with cross-platform support in mind, it works seamlessly on Android, iOS, Web, macOS, Windows, and Linux. The library uses efficient background checks to minimize battery usage while ensuring real-time updates.
Use cases
- Checking online status before API calls
- Displaying network status indicators
- Adapting app behavior based on connection speed
- Handling offline scenarios gracefully
- Monitoring connectivity during long-running tasks
Key features
- Real-time connectivity monitoring
- Support for detecting slow connections
- Cross-platform compatibility
- Lightweight and efficient
- Simple API with event streams
- Automatic reconnection detection
Suitable for
- Apps requiring reliable network state awareness
- Offline-first applications
- Network-dependent features like syncing or streaming
- Developers targeting multiple platforms
- Applications needing responsive UI feedback on connectivity
Considerations
- May require permission on some platforms
- Background checks can impact battery life if not managed
- Does not handle proxy or firewall configurations
- Limited to connectivity detection, not data transfer validation
- Not suitable for high-frequency polling without throttling