Did anyone manage to get autofill fully working wi...
# compose-android
r
Did anyone manage to get autofill fully working with Compose multiplatform, at least on Android? I tried the new semantics contentType modifier (which in "regular Compose" is supposed to be

all that is needed

), but still does not work...
h
Copy code
modifier = Modifier
            .semantics { contentType = ContentType.Password }
and
Copy code
Modifier.semantics { contentType = ContentType.Username + ContentType.EmailAddress }
works fine over here
r
thanks, yeah same thing does not work with mine, I only get a small suggestion for the email, but not what I am expecting - a system bottomsheet opening with suggestions for email+pass
s
It works for us, but only if applied directly to the
TextField
(or
BasicTextField
or whatever you may use). It does not work with the following:
Copy code
Column {
  Text("Username")
  TextField(state, Modifier.semantics {})
}
In case that's what you're trying.
👀 2
thank you color 1
c
cc: @jolo?
v
I encountered the same issue, but after testing it on a real device, it worked fine. The problem seems to be with the emulator. It was caused by not being signed into Google services. To resolve it, make sure you're logged into Google services on your emulator.
h
You need auto fill services enabled in settings in order for it to work, there's a warning that Compose throws btw
👍 1