-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't connect to secure websocket(wss) with android 8 #8952
Comments
If you create a Android app without .NET MAUI, does it reproduce then? As for the workaround, in the dialog you're seeing, change the settings to what you want and then inspect the changes in your csproj file. You can copy those into your .NET MAUI csproj file and that should still work even if the dialog in the UI isn't there. Let us please know the result of both of these, thanks! |
Hi @Lukas123798. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Thanks for the reply.
But after i paste it in my .NET MAUI project file, when i run app it crash on startup.
|
I have the same problem. If i run my Maui project in Windows machine = works perfectly This is one of the important settings, why someone discard it? Code that works on MAUI with Windows machine but not with Android:
|
@ShiiikK I created new thread, because i add more information to it and this thread seems little bit dead, so if you want you can contribute there, i will delete this thread in the near future. dotnet/runtime#83118 |
Moved to new issue dotnet/runtime#83118 |
Description
I cant connect to secure websocket(wss), it just writing
Unable to connect to the remote server
, to unsecure websocket(ws) i can connect with no problems.When i used android 11 phone it works fine.
Also i tested a few different websocket libraries, but nothing works.
Code for connecting to websocket:
And also methods to receive and send message
Steps to Reproduce
Tested on physical phone, not on the emulator.
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 8, 5
Did you find any workaround?
In xamarin, there is
SSL/TLS implementation and HttpClient implementation
option in project settings, but in .NET MAUI its not or i didnt found itRelevant log output
No response
The text was updated successfully, but these errors were encountered: