Overview
The readsms package is a Flutter plugin designed for Android that enables apps to read incoming SMS messages through a broadcast stream. It listens for SMS reception events and delivers them in real time, allowing developers to build features like automated message parsing, two-factor authentication handling, or notification systems. The plugin integrates seamlessly with Flutter's reactive programming model using Streams, making it easy to manage asynchronous SMS data. It requires appropriate permissions and is limited to Android devices.
Use cases
- Automated OTP extraction
- Real-time SMS monitoring
- Message-based triggers
- Two-factor authentication integration
- SMS logging
Key features
- Broadcast stream for incoming SMS
- Android-only support
- Reactive Stream API
- Simple permission handling
- Lightweight and fast
Suitable for
- Apps needing real-time SMS access
- OTP auto-fill implementations
- Automation tools
- Security and verification services
- Android-focused messaging apps
Considerations
- Requires SMS permission at runtime
- Limited to Android platform
- Privacy-sensitive use case
- Potential battery impact from continuous listening
- May not work on all Android versions or manufacturers