Skip to content

HUAWEI HMS SMS Retriever API Demo Project (autofill OTP)

Notifications You must be signed in to change notification settings

megaacheyounes/hms-sms-demo

Repository files navigation

Huawei SMS retriever demo

Simple demo that automatically fills in an OTP code from SMS message, based on Huawei SMS Retriever API.

The SMS is sent directly from the device using your sim card for demonstration purposes, in production environment the SMS should be sent from server side, therefore you do not need to include or request the permission Manifest.permission.SEND_SMS.

demo

demo.mp4

if the above video link is broken, then download it from here: https://github.com/megaacheyounes/hms-sms-demo/blob/master/screenshot/demo.mp4

run

  1. clone the project git clone https://github.com/megaacheyounes/hms-sms-demo.git
  2. open project in Android studio (a version that support Gradle 7)
  3. run the app on an HMS device with a working sim card

Notes

References

disclaimer

This repo includes the file agconnect-services.json for educational purposes only, you are not allowed to use it in other projects or distribute it in anyway.

About

HUAWEI HMS SMS Retriever API Demo Project (autofill OTP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published