https://github.com/thebinarysolution/sms_retriever
Flutter plugin to retrieve sms in Android using SMS Retrieval API
https://github.com/thebinarysolution/sms_retriever
Last synced: 28 days ago
JSON representation
Flutter plugin to retrieve sms in Android using SMS Retrieval API
- Host: GitHub
- URL: https://github.com/thebinarysolution/sms_retriever
- Owner: thebinarysolution
- License: other
- Created: 2019-03-12T10:17:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T07:21:07.000Z (over 4 years ago)
- Last Synced: 2026-06-16T08:04:00.933Z (about 1 month ago)
- Language: Kotlin
- Size: 34.2 KB
- Stars: 19
- Watchers: 1
- Forks: 20
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this 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
```dart
String appSignature = await SmsRetriever.getAppSignature();
```
To start listening for an incoming SMS
```dart
String smsCode = await SmsRetriever.startListening();
```
Stop listening after getting the SMS
```dart
SmsRetriever.stopListening();
```
Generate appSignature for keystore file
````dart in html
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