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