Closed tsjdev-apps closed 2 years ago
Seems there are SSL issues with Android in. NET in multiple technologies. Adding to my list, it is currently: gRPC, WebSocket, SQL Server and SMTP
As pointed out this seems to be at least a layer deeper on the Android bindings or maybe even on the plugin/.NET runtime in this case. Unfortunately this is not something that we can do something about in the .NET MAUI project.
@jfversluis can you give a tip how to solve that? Where to report etc.? Thank you
I just tested the same sample on Xamarin.Forms and on Android/UWP it is working like expected. Only .NET MAUI Android isn't working as expected.
So any workaround to this?
I just tested the same sample on Xamarin.Forms and on Android/UWP it is working like expected. Only .NET MAUI Android isn't working as expected.
If this is true then this issue needs to be reopened @jfversluis
I just tested the same sample on Xamarin.Forms and on Android/UWP it is working like expected. Only .NET MAUI Android isn't working as expected.
If this is true then this issue needs to be reopened @jfversluis
For me this exception only got raised if I'm running the sample on an emulator for .NET MAUI. If I'm running the code on a real device (I've tested with Android 11 and Android 12) it is also running.
The Xamarin version is running on an emulator and on a real device.
This issue also occurs with SignalR on Android 8.0. With Android 9.0 and above, SignalR works.
This issue also occurs with SignalR on Android 8.0. With Android 9.0 and above, SignalR works.
Could you create a new issue? I think @jfversluis doesn't plan to reopen this one I'll be happy to track it because this seems like a much broader problem with Android SSL providers
Description
I've created a small sample trying to send an email using the
System.Net.Mail.SmtpClient
. The sample is working on Windows, but not on Android. AnInterop+AndroidCrypto+SslException
is thrown.Steps to Reproduce
System.Net.Mail.SmtpClient
and calling theSendMailAsync()
on AndroidInterop+AndroidCrypto+SslException
is thrownI've tried using an
outlook.com
mail address with thesmtp-mail.outlook.com
host.See the following basic sample: MauiSendMailSample.zip
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android
Did you find any workaround?
No response
Relevant log output