-
Notifications
You must be signed in to change notification settings - Fork 4.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
Improve gRPC support on mobile platforms #69095
Comments
Tagging subscribers to 'arch-android': @steveisok, @akoeplinger Issue DetailsIn .NET 7 we would like to support the .NET gRPC client on iOS and Android so that MAUI apps can take advantage.
|
@simonrozsival @akoeplinger In the past, we've dismissed shipping any custom java class as part of the Android runtime pack. Should we reconsider in order to support self-signed certs with SocketsHttpHandler? |
Related issue: #69464 Note that gRPC-Web works over HTTP/1.1. More details: https://docs.microsoft.com/en-us/aspnet/core/grpc/supported-platforms?view=aspnetcore-6.0 |
@steveisok @simonrozsival So far I have discovered that EF Core 6 cannot do any DB calls from Android 8.1 and lower because of a pre-login SSL handshake issue. |
The title is correct. I'll change the description to include "better support". |
There have been several improvements to the gRPC support on Android in .NET 7 (bugfix #69507 which enables AOT compilation on Android, CI setup in #73060) but we still need more time to finish this issue (especially the iOS part) and there's not enough time to finish it in time for .NET 7. I'm moving further improvements (mostly infrastructure related) to .NET 8. |
@simonrozsival Thanks, does this mean gRPC Client will be available for Android with .NET 7 or will be together with iOS on .NET 8? |
@janseris the gRPC Client is an independent NuGet package (https://www.nuget.org/packages/Grpc.Net.Client). It already works with .NET 6 on Android and iOS. In .NET 7, ahead of time compilation on Android will be fixed. We'll also run the interop tests on Android emulators. In .NET 8 we'll further improve our CI infrastructure to ensure the gRPC client works correctly on Android and iOS devices. |
When I start to try gRPC with MAUI and .NET I had hope to can use the same client library for all kind of clients, MAUI, WPF and so on. But but the moment, I am having problems with self signed certificates. I can make it work in windows applications, but if I try to use MAUI / Android, I get an error:
When I knew that MAUI will use .NET 6 I thought I could use the same libraries in all my projects, but I but the moment I can't finde the way to do. If it could be improve this aspect, it would be very nice. |
@ComptonAlvaro MAUI has this type of problems when connecting to SQL Server as well. It probably has something to do with underlying SSL provider or implementation. There have been also problems with WebSocket etc. Noone seems to be going towards any fix so far. When MAUI was in preview, there existed a configuration in .csproj where you could change SSL/TLS implementation but that has disappeared since official release and I think it didn't help me establishing connection to SQL Server in Android 8.0 and lower anyways. |
In .NET 7 we would like to better support the .NET gRPC client on iOS and Android so that MAUI apps can take advantage.
The text was updated successfully, but these errors were encountered: