Read SMS Package for Flutter

This package provides an easy way to fetch SMS messages from a user's device and send them to a server. It simplifies SMS integration in Flutter projects, allowing developers to access and process SMS data effortlessly.

Features

βœ… Fetch SMS messages from the user's device.
βœ… Send SMS data to a server.
βœ… Handles necessary permissions for reading SMS.

Installation

To use this package, add the following dependency to your pubspec.yaml file:

dependencies:
  flutter_read_inbox: ^0.0.1

Then, run:

flutter pub get

Getting Started

To start using this package, you must add the required permissions in your Android project's AndroidManifest.xml file:

<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.READ_PROFILE"/>
<uses-permission android:name="android.permission.INTERNET"/>

Usage

Import the package:

import 'package:read_sms/src/read_inbox.dart';

Request Permissions and Fetch SMS

final ReadInbox readInbox = ReadInbox();

// Request necessary permissions
readInbox.readInboxData();

Example

For a complete example, check the /example folder.

Additional Information

  • Issues & Contributions: If you find any issues or want to contribute, visit the GitHub repository.
  • Support: If you need help, open an issue or reach out via email.

πŸš€ Enjoy seamless SMS integration in your Flutter project! πŸš€

Libraries