Workaround for WebAuthenticator crash affecting Android on .NET MAUI
When using WebAuthenticator for .NET MAUI and the browser first launches, the app crashes in the background. When the app is relaunched, the browser can be opened again and the WebAuthenticator process succeeds without a problem. This affects Android and is the same issue posted here - https://github.com/dotnet/maui/issues/24692. There is a workaround suggested there which involves overriding the StartActivityForResult function in the WebAuthenticatorCallbackActivity subclass, but this did not work for me. Do you have another workaround for this issue that I could implement, or a more detailed version of the suggested workaround?