SmsConsentError

sealed interface SmsConsentError(source)

Reasons the SMS User Consent flow can end without a code.

After any of these, change restartKey on SmsUserConsentEffect to listen again, for example when the user taps "Resend code".

Inheritors

Types

Link copied to clipboard

The user allowed access, but the message had no code with the expected number of digits.

Link copied to clipboard

The user closed the consent sheet without allowing access to the message.

Link copied to clipboard

The consent sheet couldn't be opened on this device.

Link copied to clipboard

Play services refused to start listening. It's usually missing, disabled or out of date.

Link copied to clipboard
data object Timeout : SmsConsentError

No matching SMS arrived within the five minutes Play services waits for one.

Link copied to clipboard

A broadcast carried a consent intent that doesn't point at Play services, so it was dropped. Listening continues, because the real message may still arrive.