搜尋套件、儲存庫與 APP 分類

套件詳情v0.2.0+4

readsms

一個 Flutter 插件,將設備上的來電簡訊作為廣播串流讀取。

Android
近 30 天下載
7
喜歡數
51
Pub 分數
150

安裝套件

flutter pub add readsms

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

readsms 套件是一個為 Android 設計的 Flutter 插件,可讓應用程式透過廣播串流讀取進來的簡訊訊息。它會監聽簡訊接收事件並即時傳遞訊息,讓開發者能建構自動化訊息解析、雙因素驗證處理或通知系統等功能。此套件使用 Streams 與 Flutter 的反應式程式設計模型無縫整合,方便管理非同步簡訊資料。它需要適當權限,且僅適用於 Android 裝置。

適用情境

  • 自動提取OTP
  • 即時簡訊監控
  • 基於訊息的觸發器
  • 雙因素認證整合
  • 簡訊日誌

主要特色

  • 接收簡訊的廣播串流
  • 僅支援 Android
  • 反應式流 API
  • 簡單的權限處理
  • 輕便且快速

適合對象

  • 需要即時簡訊存取的應用程式
  • OTP自動填入實作
  • 自動化工具
  • 安全與驗證服務
  • 以安卓為重點的即時通訊應用

使用建議

  • 需要在執行時授予簡訊權限
  • 僅限Android平台
  • 隱私敏感的使用場景
  • 持續聆聽可能對電池造成的影響
  • 可能不適用於所有 Android 版本或製造商

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。