tree: 04896b3cfe1a28e0ce8bd226d395c96c03736bb1 [path history] [tgz]
  1. test/
  2. OWNERS
  3. README.md
  4. sms_browsertest.cc
  5. sms_fetcher_impl.cc
  6. sms_fetcher_impl.h
  7. sms_fetcher_impl_unittest.cc
  8. sms_metrics.cc
  9. sms_metrics.h
  10. sms_parser.cc
  11. sms_parser.h
  12. sms_parser_unittest.cc
  13. sms_provider.cc
  14. sms_provider.h
  15. sms_provider_android.cc
  16. sms_provider_android.h
  17. sms_provider_android_unittest.cc
  18. sms_queue.cc
  19. sms_queue.h
  20. sms_service.cc
  21. sms_service.h
  22. sms_service_unittest.cc
content/browser/sms/README.md

SMS Receiver API

Android has automatic and one-tap SMS verification. We would like to cover the gap on web platform and implement the SMS Receiver API for web developers.

Web-exposed Interfaces

SMS Receiver API

This is implemented in third_party/blink/renderer/modules/sms and exposes the following function:

navigator.sms.receive()

Testing

For how to run these tests, refer to Chromium documentation Running tests locally, Android Test Instructions

For testing this API locally, refer to How to use the SMS Receiver API

Platform Support

Android

The Android implementation (this does not include Android WebView) is located in chrome/browser/ui/android/sms/, content/public/android/java/src/org/chromium/content/browser/sms/, and chrome/android/java/src/org/chromium/chrome/browser/sms/.

For architectural diagrams, refer to design doc.

Desktop

We plan to implement it in the near future.

Related Documentation

Design Doc

SMS Receiver API explainer

How to use the SMS Receiver API

Launch Bug