I want to provide some autofill functionality in my app (email and password) that is written completely using Jetpack compose. I came across this blog post and this demo code which I both tried out. Unfortunately, I can't get any popup when interacting with the text fields.
After modifying my code, I ended up using the provided demo. A minimal example looks like this (the ExplicitAutofillTypesDemo
composable is taken from the demo code mentioned above without any modification):
class MainActivity: AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
ExplicitAutofillTypesDemo()
}
}
}
What am I missing? Do I need to enable it somewhere else? The official compose autofill documentation is not very helpful. I only want to get a autofill popup when touching a text field like in the blog post above.