FLUTTER ECOSYSTEM

thebinarysolution/sms_retriever

Flutter plugin to retrieve sms in Android using SMS Retrieval API

sms_retriever project cover
Stars
19
Forks
20
Last push (UTC)
Feb 15, 2022
Project status
Active
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.

@debutdeveloperMohaliOfficial website ↗
LanguagesKotlinDartObjective-CRuby

Dependencies used

Dependency list 2 items
  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project 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