title: firebase phone authentication problem in flutter
body: <p>I am using below code for firebase authentication.</p>
  
  <pre><code> void NavigateToOtp(){
        //Navigate to another screen
      }
      Future&lt;void&gt; verifyPhone() async {
        final PhoneCodeSent smsOTPSent = (String verId, [int forceCodeResend]) {
          this.verificationId = verId;
        };
        try {
          await _auth.verifyPhoneNumber(
              phoneNumber: '+XX XXXXXXXXXX', // PHONE NUMBER TO SEND OTP
              codeAutoRetrievalTimeout: (String verId) {
                //Starts the phone number verification process for the given phone number.
                //Either sends an SMS with a 6 digit code to the phone number specified, or sign's the user in and [verificationCompleted] is called.
                this.verificationId = verId;
              },
              codeSent:
              smsOTPSent, // WHEN CODE SENT THEN WE OPEN DIALOG TO ENTER OTP.
              timeout: const Duration(seconds: 20),
              verificationCompleted: (AuthCredential phoneAuthCredential) {
                print(_auth.currentUser());
                print(phoneAuthCredential);
                NavigateToOtp();
  
              },
              verificationFailed: (AuthException exceptio) {
                print('${exceptio.message}');
              });
        } catch (e) {
          handleError(e);
        }
      }
  
      void sendOtp(){
        verifyPhone();
      }
  </code></pre>
  
  <p>But is showing me below error :</p>
  
  <blockquote>
    <p>[FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzaq@847da6d</p>
  </blockquote>
  
  <p>I am using Android emulator Pixel API 29.</p>
  
  <ol>
  <li>Added phone number in Google-sign and enable phone signin providers in firebase console </li>
  <li>Also created SHA key and also added google firebase plugin in .gradle file</li>
  </ol>
  
  <p>I am using this code : <a href="https://www.c-sharpcorner.com/article/otp-authentication-in-flutter-using-firebase/" rel="nofollow noreferrer">https://www.c-sharpcorner.com/article/otp-authentication-in-flutter-using-firebase/</a></p>