title: How to connect Android GRPC client to azure app service, I am doing such work but its not wroking
body: <p>Basically, this code sign in the user with API, using GRPC but I could not connect the android app.
  Every time it returns another error but not the response after searching on too many links it gives another solution which does not work at all</p>
  <pre><code>        ManagedChannel channel = ManagedChannelBuilder.forAddress(url, port).
          keepAliveWithoutCalls(true).usePlaintext()
          .enableRetry()
          .keepAliveTime(20, TimeUnit.SECONDS)
          .keepAliveTimeout(1, TimeUnit.MINUTES)
          .keepAliveWithoutCalls(true)
          .build();
  
  
  Account.SignInRequest request = Account.SignInRequest.newBuilder().setEmail(&quot;xyz&quot;).setPassword(&quot;123456&quot;).build();
  Account.SignInResponse response = null;
  public ProtoServiceGrpc.ProtoServiceBlockingStub blockingStub = ProtoServiceGrpc.newBlockingStub(channel);
  
  
  try {
      response = blockingStub.signIn(request);
      Log.i(&quot;Response GRPC=&gt;&quot;, String.valueOf(response));
  }catch (Exception e){
      e.printStackTrace();
      e.getMessage();
  }
  </code></pre>
  <p><strong>And the response from this code is</strong></p>
  <pre><code>W/System.err: io.grpc.StatusRuntimeException: UNAVAILABLE: End of stream or IOException
  W/System.err:     at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:240)
      at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:221)
      at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:140)
      at com.abc.androidtodoexample.ProtoServiceGrpc$ProtoServiceBlockingStub.signIn(AccountProtoServiceGrpc.java:259)
      at com.abc.androidtodoexample.MainActivity.xoopahGrpc(MainActivity.java:149)
      at com.abc.androidtodoexample.MainActivity.access$000(MainActivity.java:30)
      at com.abc.androidtodoexample.MainActivity$1.onClick(MainActivity.java:59)
  </code></pre>
  <p><strong>build file is</strong></p>
  <pre><code>plugins {
      id 'com.android.application'
      id 'com.google.protobuf' version '0.8.8'
      id 'idea'
  }
  
  android {
      compileSdk 31
  
      defaultConfig {
          applicationId &quot;com.abc.androidtodoexample&quot;
          minSdk 21
          targetSdk 31
          versionCode 1
          versionName &quot;1.0&quot;
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  }
  
  def grpcVersion = '1.27.0'
  
  dependencies {
  
      implementation 'androidx.appcompat:appcompat:1.4.1'
      implementation 'com.google.android.material:material:1.5.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
      testImplementation 'junit:junit:4.+'
      androidTestImplementation 'androidx.test.ext:junit:1.1.3'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  
      implementation 'javax.annotation:javax.annotation-api:1.2'
      implementation &quot;io.grpc:grpc-protobuf:${grpcVersion}&quot;
      implementation &quot;io.grpc:grpc-auth:${grpcVersion}&quot;
      implementation &quot;io.grpc:grpc-census:${grpcVersion}&quot;
      implementation &quot;io.grpc:grpc-okhttp:${grpcVersion}&quot;
      implementation &quot;io.grpc:grpc-stub:${grpcVersion}&quot;
  
  
      //lastly added
      implementation 'io.grpc:grpc-okhttp:1.39.0'
  
      implementation 'org.conscrypt:conscrypt-android:2.5.2'
  
  
  }
  </code></pre>
  <p>Proto File is attached below,</p>
  <pre><code>syntax = &quot;proto3&quot;;
  
  
  service AccountProtoService{
      rpc SignIn(SignInRequest) returns(SignInResponse);  
  }
  
  
  message SignInRequest{
          string email=1;
      string password=2;
  }
  
  message SignInResponse{
  
      string name=1;
      string username=2;
          string token=3;
      string message=4;
  }
  </code></pre>
  <p>Is there any problem with the code or Gradle file? Could you help me, please? Thanks</p>