Skip to content
pubscout

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
$ flutter pub add android_sms_retriever
Source repository

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.