FirebaseAuth: RemoteException when sending failure result

29
September 11, 2019, at 10:50 AM

I have an issue when I woking with firebase auth

 private fun startPhoneNumberVerification() {
        PhoneAuthProvider.getInstance().verifyPhoneNumber(
            phoneNumber,
            VERIFY_PHONE_NUMBER_TIME_OUT_IN_SECOND,
            TimeUnit.SECONDS,
            requireActivity(),
            stateChangedCallbacks
        )
    } 

and the stateChangedCallbacks

stateChangedCallbacks = object : PhoneAuthProvider.OnVerificationStateChangedCallbacks() {
            override fun onVerificationCompleted(credential: PhoneAuthCredential) {
                // todo check if user is exist then block this flow
            }
            override fun onVerificationFailed(e: FirebaseException) {    
                if (e is FirebaseAuthInvalidCredentialsException) {
                    // todo handle case invalid credential
                } else if (e is FirebaseTooManyRequestsException) {
                    // todo handle case fire base too many requests
                }
            }
            override fun onCodeSent(
                verificationId: String,
                token: PhoneAuthProvider.ForceResendingToken
            ) {
                goToVerifyCode(verificationId)
            }
        }

The issue is, sometimes although onCodeSent invoked, I do not receive the otp-sms, and sometimes an error occurred

E/FirebaseAuth: [VerifyPhoneNumberOperation] RemoteException when sending failure result. android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:503) at crb.c(:com.google.android.gms@16089022@16.0.89 (040700-239467275):1) at bmlm.a(:com.google.android.gms@16089022@16.0.89 (040700-239467275):8) at bmli.a(:com.google.android.gms@16089022@16.0.89 (040700-239467275):7) at bmik.a(:com.google.android.gms@16089022@16.0.89 (040700-239467275):3) at bmif.a(:com.google.android.gms@16089022@16.0.89 (040700-239467275):2) at bmim.a(:com.google.android.gms@16089022@16.0.89 (040700-239467275):5) at bmkm.a(:com.google.android.gms@16089022@16.0.89 (040700-239467275):7) at bmio.a(:com.google.android.gms@16089022@16.0.89 (040700-239467275):158) at bmif.handleMessage(:com.google.android.gms@16089022@16.0.89 (040700-239467275):37) at rri.run(:com.google.android.gms@16089022@16.0.89 (040700-239467275):6) at rrt.b(:com.google.android.gms@16089022@16.0.89 (040700-239467275):32) at rrt.run(:com.google.android.gms@16089022@16.0.89 (040700-239467275):21) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at rxx.run(:com.google.android.gms@16089022@16.0.89 (040700-239467275)) at java.lang.Thread.run(Thread.java:818)

Did anyone face this issue before? and does anyone have a suggestion for my issue? Any response would be appreciated.

READ ALSO
Google OAuth is failed with javascript disabled error in my android app's web view

Google OAuth is failed with javascript disabled error in my android app's web view

I am developing an android app using the google drive API

35
load content from one php page in another

load content from one php page in another

I have three PHP pages indexphp, fetch_data

13
BackBone JS rendering multiple views performance issues

BackBone JS rendering multiple views performance issues

I have a single page which is implemented using backboneThere are a minimum of 1000 views for the page

34
jQuery fade in and animate at the same time on document ready

jQuery fade in and animate at the same time on document ready

I have a modal popup that I'm trying to get to fade in and animate at the same time when the document is ready but I can't get it to functionI can fadeIn just fine:

31