title: Why is my gmail login not working through firebase
body: <p>I don't know anything about coding and have been learning as I go along</p>
  <p>i cant seem to log in via google even though I do show up as active on firebase</p>
  <p>can anyone see if I'm missing something?</p>
  <pre><code>//Relate to google login
     private void handleSignInResult(Task&lt;GoogleSignInAccount&gt; completedTask) {
         try {
             GoogleSignInAccount account = completedTask.getResult(ApiException.class);
             if (account != null) {
                 String id = account.getId();
                 String fname = &quot;&quot; + account.getGivenName();
                 String lname = &quot;&quot; + account.getFamilyName();
  
                 // if we do not get the picture of user then we will use default profile picture
  
                 String pic_url;
                 if (account.getPhotoUrl() != null) {
                     pic_url = account.getPhotoUrl().toString();
                 } else {
                     pic_url = &quot;null&quot;;
                 }
  
  
                 if (fname.equals(&quot;&quot;) || fname.equals(&quot;null&quot;))
                     fname = getResources().getString(R.string.app_name);
  
                 if (lname.equals(&quot;&quot;) || lname.equals(&quot;null&quot;))
                     lname = &quot;User&quot;;
  
                 Change_Url_to_base64(id, fname, lname, pic_url, &quot;gmail&quot;);
  
  
             }
         } catch (ApiException e) {
             Log.w(&quot;Error message&quot;, &quot;signInResult:failed code=&quot; + e.getStatusCode());
         }
  
     }
  
  
     public void Change_Url_to_base64(final String user_id,
                                      final String f_name, final String l_name, String picture, final String singnup_type) {
  
         Functions.show_loader(this, false, true);
         Log.d(Variables.tag, picture);
  
         if (picture.equalsIgnoreCase(&quot;null&quot;)) {
             Call_Api_For_Signup(user_id, f_name, l_name, picture, singnup_type);
         } else {
             Glide.with(this)
                     .asBitmap()
                     .load(picture)
                     .into(new CustomTarget&lt;Bitmap&gt;() {
                         @Override
                         public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition&lt;? super Bitmap&gt; transition) {
                             String image_base64 = Functions.bitmap_to_base64(Login_A.this, resource);
                             Call_Api_For_Signup(user_id, f_name, l_name, image_base64, singnup_type);
                         }
  
                         @Override
                         public void onLoadCleared(@Nullable Drawable placeholder) {
                         }
                     });
         }
     }
  </code></pre>
  <p>I'm only righting this part because the website keeps telling me that its mostly code and i need to add more details even though i dont know what else to ask or add</p>