FLUTTER ECOSYSTEM

thebinarysolution/sms_retriever

使用簡訊檢索 API 在 Android 上取得簡訊的 Flutter 插件

sms_retriever 專案封面
Stars
19
Forks
20
最近推送(UTC)
2022年2月15日
專案狀態
未封存
Lakhwinder Singh GitHub avatar
GITHUB User

Lakhwinder Singh ↗

Obsessed with detail and quality. Always trying to improve development and communication processes. I love simple and elegant solutions for every problem.

@debutdeveloperMohali官方網站 ↗
語言KotlinDartObjective-CRuby

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

sms_retriever

A new Flutter plugin to retrieve the SMS on Android using SMS Retrieval API

Getting Started

To retrieve a app signature. It requires by the SMS

String appSignature = await SmsRetriever.getAppSignature();

To start listening for an incoming SMS

String smsCode = await SmsRetriever.startListening();

Stop listening after getting the SMS

SmsRetriever.stopListening();

Generate appSignature for keystore file

keytool -storepass storepass -alias alias -exportcert -keystore file | xxd -p | tr -d "[:space:]" | xxd -r -p | base64 | cut -c1-11

Example SMS

[#] Your example code is: 123456 appSignature