Java.Lang.IllegalStateException when resuming the App from an Android Autofill Service #18121
Labels
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
t/bug
Something isn't working
Description
When using an android app that has an Autofill Service if we create an intent for "Autofilling" a field that opens the app again the app crashes on
base.OnCreate();
This only seems to happen when using a "non-shell" implementation.
The Activity used for that Intent doesn't seem to matter. On the reproduction sample two different activities can be chosen for opening the app from the Autofill Service but they both crash on
base.OnCreate()
.Steps to Reproduce
Doing the same steps with
MainPage = new AppShell()
doesn't crash the app.Link to public reproduction project repository
https://github.com/dinisvieira/autofill-service-crash-repro/tree/main
Version with bug
8.0.0-rc.2.9373
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 10 and up (at least)
Did you find any workaround?
Using
new AppShell()
doesn't crash but this is not an option for us. We are migrating an entire "non-shell" app from Xamarin Forms.Relevant log output
The text was updated successfully, but these errors were encountered: