grpc-dotnet icon indicating copy to clipboard operation
grpc-dotnet copied to clipboard

grpc xamarin not working

Open SalimiHabib opened this issue 2 years ago • 2 comments

dotnet/issues/1494#issuecomment-975918294_

it seems Xamarin team too busy to answer. do you have any suggestion?

SalimiHabib avatar Nov 23 '21 11:11 SalimiHabib

No. That's why I asked you to talk to them.

Can you point me towards your question to them?

JamesNK avatar Nov 23 '21 19:11 JamesNK

my issue link : 14855

additional information below packages are used in project


  <ItemGroup>
    <PackageReference Include="Shiny" Version="2.4.0.2967-preview" />
    <PackageReference Include="Shiny.Framework" Version="1.3.0.93" />
    <PackageReference Include="Shiny.Jobs" Version="2.4.0.2967-preview" />
    <PackageReference Include="Shiny.Locations" Version="2.4.0.2967-preview" />
    <PackageReference Include="Shiny.Logging.AppCenter" Version="2.4.0.2967-preview" />
    <PackageReference Include="Shiny.Net.Http" Version="2.4.0.2967-preview" />
    <PackageReference Include="Shiny.Notifications" Version="2.4.0.2967-preview" />
    <PackageReference Include="Shiny.Sensors" Version="2.4.0.2967-preview" />
    <PackageReference Include="SkiaSharp" Version="2.88.0-preview.155" />
    <PackageReference Include="SkiaSharp.QrCode" Version="0.4.1" />
    <PackageReference Include="SkiaSharp.Views.Forms" Version="2.88.0-preview.155" />
    <PackageReference Include="sqlite-net-pcl" Version="1.8.116" />
    <PackageReference Include="Xam.Plugin.SimpleAudioPlayer" Version="1.5.0" />
    <PackageReference Include="Xamarin.Forms" Version="5.0.0.2244" />  
    <PackageReference Include="Xamarin.Essentials" Version="1.7.0" />
  </ItemGroup>

also using below package in blazor wasm work fine

<PackageReference Include="Grpc.Net.Client.Web" Version="2.41.0-pre1" />

but in xamarin , we have below packages in addition to above list


        <PackageReference Include="Google.Protobuf" Version="3.19.1" />
        <PackageReference Include="Grpc.Net.Client" Version="2.40.0" />
        <PackageReference Include="Grpc.Net.Client.Web" Version="2.40.0" />
        <PackageReference Include="Grpc.Net.ClientFactory" Version="2.40.0" />
        
        <PackageReference Include="Grpc.Tools" Version="2.40.0">
        <PrivateAssets>all</PrivateAssets>
        <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
        </PackageReference>
     

test perform with brand new xamarin boilerplate code in vs 2022 but same result as below


  at Grpc.Core.Internal.UnimplementedCallInvoker.AsyncUnaryCall[TRequest,TResponse] (Grpc.Core.Method`2[TRequest,TResponse] method, System.String host, Grpc.Core.CallOptions options, TRequest request) [0x00000] in /var/local/git/grpc/src/csharp/Grpc.Core.Api/Internal/UnimplementedCallInvoker.cs:42 
  at Grpc.Core.Interceptors.InterceptingCallInvoker.<AsyncUnaryCall>b__4_0[TRequest,TResponse] (TRequest req, Grpc.Core.Interceptors.ClientInterceptorContext`2[TRequest,TResponse] ctx) [0x00000] in /var/local/git/grpc/src/csharp/Grpc.Core.Api/Interceptors/InterceptingCallInvoker.cs:62 
  at Grpc.Core.ClientBase+ClientBaseConfiguration+ClientBaseConfigurationInterceptor.AsyncUnaryCall[TRequest,TResponse] (TRequest request, Grpc.Core.Interceptors.ClientInterceptorContext`2[TRequest,TResponse] context, Grpc.Core.Interceptors.Interceptor+AsyncUnaryCallContinuation`2[TRequest,TResponse] continuation) [0x00000] in /var/local/git/grpc/src/csharp/Grpc.Core.Api/ClientBase.cs:179 
  at Grpc.Core.Interceptors.InterceptingCallInvoker.AsyncUnaryCall[TRequest,TResponse] (Grpc.Core.Method`2[TRequest,TResponse] method, System.String host, Grpc.Core.CallOptions options, TRequest request) [0x00000] in /var/local/git/grpc/src/csharp/Grpc.Core.Api/Interceptors/InterceptingCallInvoker.cs:59 
  at aco.shr.grpc.FileManager+FileManagerClient.OutOfBandMessagingAsync (aco.shr.grpc.RequestForInvitation request, Grpc.Core.CallOptions options) [0x00001] in C:\Users\hab\source\repos\aco.showroom\fe\mob\aco.shr.xam\aco.shr.xam\obj\Debug\netstandard2.1\Protos\OpmGrpc.cs:164 
  at aco.shr.grpc.FileManager+FileManagerClient.OutOfBandMessagingAsync (aco.shr.grpc.RequestForInvitation request, Grpc.Core.Metadata headers, System.Nullable`1[T] deadline, System.Threading.CancellationToken cancellationToken) [0x00001] in C:\Users\hab\source\repos\aco.showroom\fe\mob\aco.shr.xam\aco.shr.xam\obj\Debug\netstandard2.1\Protos\OpmGrpc.cs:159 
  at aco.shr.xam.ViewModels.LoginPageViewModel.<.ctor>b__13_0 () [0x00018] in C:\Users\hab\source\repos\aco.showroom\fe\mob\aco.shr.xam\aco.shr.xam\ViewModels\LoginPageViewModel.cs:42 





SalimiHabib avatar Nov 24 '21 06:11 SalimiHabib