Skip to content

frontrow-tech/sms_retriever_api

 
 

Repository files navigation

sms_retriever_api

A Flutter plugin for Android automatic SMS verification using Google’s SMS retriever API . Currently supports on only Android.

Getting Started

To use this plugin, add sms_retriever_api as a dependency in your pubspec.yaml file.

Example

    SmsRetrieverApi.getAppSignature().then((signature){

      print(signature); // use it in sms body.
      return SmsRetrieverApi.startListening();}).then((x){
      String smsCode = x; // otp code (digit only)
      print("sms - $smsCode");

      //stop listening for sms
      SmsRetrieverApi.stopListening();

    }).catchError((_){
      print("sms error");
    });

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 52.0%
  • Dart 31.8%
  • Swift 7.6%
  • Ruby 5.3%
  • Objective-C 3.3%