Overview
The sms_user_consent package enables Flutter apps to request a user's phone number and/or consent to read SMS messages on Android, without requiring explicit permissions. It leverages Android's built-in SMS permission system, allowing users to grant access through standard system dialogs. The package supports dual-SIM devices, ensuring compatibility across diverse Android hardware. It is ideal for applications needing OTP verification or SMS-based authentication, streamlining the process while maintaining privacy and security.
Use cases
- OTP verification
- SMS-based authentication
- Dual-SIM device support
- Privacy-preserving SMS access
- User consent collection
Key features
- No additional permissions required
- Dual-SIM compatibility
- Android-only support
- System-level consent dialog
- Phone number retrieval
Suitable for
- Apps needing OTP input
- Authentication flows
- SMS reading without manifest permissions
- Android-focused apps
- Minimal permission apps
Considerations
- Android only
- Requires user interaction
- Limited to SMS reading
- No iOS support
- Depends on system-level consent
