Search packages, repositories and app categories

Package detailsv0.2.0+4

readsms

A flutter plugin that reads incoming SMS on device as a broadcast stream.

Android
30-day downloads
7
Likes
51
Pub points
150

Install package

flutter pub add readsms

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

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

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

readsms

This is a plugin made for flutter to read incoming sms on the device as a broadcast stream.

Following steps describe how to use the plugin ReadSms :-

  • Ask the user for Sms permission. You can do this using Permission handler package.
  • Create an instance of ReadSms.
  final plugin = ReadSms();
  • Call the read method on the plugin object;
  plugin.read();
  • Access the stream of SMS exposed by the plugin object and get the incoming SMS.
  plugin.smsStream.listen((sms){
    print(sms.body);
    print(sms.sender);
    print(sms.timeReceived);
  });

That's all you need to do.

Categories

Source repository

Projects using this package

No data available yet.