androidSmsAutofillMethod property
By default Android autofill is Disabled, you cane enable it by using any of options listed below
First option is AndroidSmsAutofillMethod.smsRetrieverApi it automatically reads sms without user interaction More about Sms Retriever API https://developers.google.com/identity/sms-retriever/overview?hl=en
Second option requires user interaction to confirm reading a SMS, See readme for more details AndroidSmsAutofillMethod.smsUserConsentApi More about SMS User Consent API https://developers.google.com/identity/sms-retriever/user-consent/overview
Implementation
final AndroidSmsAutofillMethod androidSmsAutofillMethod;