tree: 3c934bacec698119e812c7c69d633b2cf1984a85 [path history] [tgz]
  1. OWNERS
  2. README.md
  3. sms_browsertest.cc
  4. sms_metrics.cc
  5. sms_metrics.h
  6. sms_parser.cc
  7. sms_parser.h
  8. sms_parser_unittest.cc
  9. sms_provider.cc
  10. sms_provider.h
  11. sms_provider_android.cc
  12. sms_provider_android.h
  13. sms_provider_android_unittest.cc
  14. sms_provider_desktop.cc
  15. sms_provider_desktop.h
  16. sms_service.cc
  17. sms_service.h
  18. sms_service_unittest.cc
  19. test/
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