android_sms_retriever
1.3.3, released 4 years ago by arsam.me
Flutter plugin to automatically retrieve OTP SMS on Android without SMS permission
WASM-ready
What it does
It listens for incoming SMS, extracts the OTP code, and can also request one‑time consent or manage stored phone numbers via Smart Lock.
AI-written summary of version 1.3.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to auto‑read OTP codes on Android
- You want to avoid requesting SMS permission
- You need to store and retrieve user phone numbers
Skip it when
- You target iOS or other platforms
- You need a cross‑platform SMS solution
Strengths
- No SMS permission required
- Supports Smart Lock for phone number storage
- Simple async API
Weaknesses
- Android only
- No support for iOS
- Requires user to grant one‑time consent for non‑signed messages
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency, import package, call async methods; no special permissions needed
import 'package:android_sms_retriever/android_sms_retriever.dart';
String? code = await AndroidSmsRetriever.listenForSms();Alternatives
Packages that do the same job and could replace android_sms_retriever.
- import_sorter
Automatically sorts Dart imports alphabetically and groups them by type
50Compare - import_path_converter
Automatically convert relative and absolute import paths in Dart files.
47Compare - http_status_code
A Dart library providing constants and helpers for HTTP status codes.
39Compare