-
Notifications
You must be signed in to change notification settings - Fork 564
Description
Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
.NET SDK 6.0.202, Runtime 6.0.4
Description
Xamarin.Android.Net.AndroidHttpHandler was used for Xamarin android applications, and is set when using Visual Studio project setting UI.
However, only the new AndroidMessageHandler is preserved:
When using HttpClientHandler with a migrated application, it crashes hardly in Debug configuration, and throws NullReferenceException in Release configuration. It's quite hard to debug for people unfamiliar with how http client handler works.
Steps to Reproduce
Use <AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidHttpHandler</AndroidHttpClientHandlerType> in any minimal application, and use HttpClientHandler.
Did you find any workaround?
I browsed the code path setting up native handler, and realized only AndroidMessageHandler would work.
Relevant log output
No response