Hi,
I'm upgrading an app from Xamarin Forms/ArcGIS Runtime 100.15 to Maui/Maps SDK 200.0.
We're using ArcGISHttpClientHandler, and see that it is now marked as obsolete and we're supposed to use ArcGISHttpMessageHandler instead. Unfortunately, it seems like we need to be able to set ArcGISHttpClientHandler.PreAuthenticate to false in order to support IWA on Android. If we do not set this value then the app hangs when trying to make a request to services in a portal secured with IWA.
When I tried to switch over to using ArcGISHttpMessageHandler, this property isn't available on the handler, and I get the same hanging behaviour.
I have set credential.PreAuthenticateBehavior = PreAuthenticateBehavior.Disabled on the ArcGISNetworkCredential that we create for IWA but that doesn't help.
There are also a couple other properties we use on ArcGISHttpClientHandler: Credentials, UseDefaultCredentials and ServerCertificateCustomValidationCallback, which are also absent from the new ArcGISHttpMessageHandler - but PreAuthenticate is the only one I've confirmed (through testing) that we can't do without at the moment.
So, what to do? In the meantime we'll continue to use the obsolete ArcGISHttpClientHandler, but presumably we'll have to update it at some point. Is there some other equivalent to PreAuthenticate that we can use with the ArcGISHttpMessageHandler? Or can anyone point to a sample of using IWA on Android that might help? There was a known bug on Android for Esri's IWA samples for Xamarin Forms so I believe they removed that sample, but I still don't see an IWA sample in the Maui samples project although it should apparently work in Maui.