Skip to content

How to force captcha to show for testing while verifying phone number? #5339

Answered by mikehardy
lucasfronza asked this question in Q&A
Discussion options

You must be logged in to vote

I believe the easiest way is to disable background app refresh or test on an emulator or simulator? Those do reCAPTCHA 100% of the time.

There is an API that we haven't wrapped yet that would expose it, if you wanna do a PR 😄 🙏 ?
https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseAuthSettings#forceRecaptchaFlowForTesting(boolean)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lucasfronza
Comment options

@mikehardy
Comment options

@lucasfronza
Comment options

Answer selected by lucasfronza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants