baumblatt / capacitor-firebase-auth

Capacitor Firebase Authentication Plugin
MIT License
261 stars 129 forks source link

Omit the "Verifying you're not a robot" screen #30

Open jayordway opened 4 years ago

jayordway commented 4 years ago

When trying to receive an SMS key with iOS there is a screen that pops up before the message is sent that has a progress loader, says "Verifying you're not a robot" and you see the firebase url at the top. This really doesn't provide a great user experience, is there a way to hide this?

image-8

baumblatt commented 4 years ago

Hi Jey,

Yes there is! This is part of the application verification process, accordantly the official Firebase docs you have two options: reCaptcha and silent APN notifications.

You got the first one, reCaptcha, and the best user experience is silent APN notifications.

This is all about your App setting, nothing to do with this plugin, so please take a look how Enable app verification on official Firebase docs.

Please let me know if you have any questions, or we can close this issue.

Best regards
Bernardo Baumblatt

jayordway commented 4 years ago

I am not using reCaptcha, this is silent APN notifications but I am still seeing this intermediate page.

If I am testing on the web, I see the reCaptcha, but on the device with Ionic + Capacitor, this screen appears for a brief second. There is no reCaptcha though, and I do get the text message. On Android I don't believe this screen appears at all.

baumblatt commented 4 years ago

Hi Jay,

I got you, but please review your App configurations, I just made a test on my App at production and this is not happened. My screen is entire green and keeps that way for the entire phone authentication process.

About the Android, you are right, this screen will never be showed. This is because Google use other method for the application verification process.

Please let me know how can I help you? Can you share the project? Do you want to take a look together in other way?

Best regards Bernardo Baumblatt

gaipoi commented 4 years ago

I'm developing an iOS app and I'm having a similar problem! Specifically, when you run this process.

PhoneAuthProvider.provider().verifyPhoneNumber
tptshoe commented 2 years ago

Hi everyone,

I'm having the same problem. I've gone through the configuration steps multiple times and the result is the same every time. Here's what I'm seeing in the app logs in xcode:

⚡️ [log] - Native platform. Attempting to send sms code ⚡️ To Native -> CapacitorFirebaseAuth addListener 11492223 ⚡️ [log] - returning ⚡️ To Native -> CapacitorFirebaseAuth signIn 11492224 2021-10-25 10:38:20.232353-0400 App[46252:3492557] GTMSessionFetcher invoking fetch callbacks, data {length = 177, bytes = 0x7b0a2020 22726563 65697074 223a2022 ... 3a202235 220a7d0a }, error (null) 2021-10-25 10:38:25.307267-0400 App[46252:3492557] 8.8.0 - [Firebase/Auth][I-AUT000014] Failed to receive remote notification to verify app identity within 5 second(s), falling back to reCAPTCHA verification. 2021-10-25 10:38:25.560026-0400 App[46252:3492674] GTMSessionFetcher invoking fetch callbacks, data {length = 187, bytes = 0x7b0a2020 2270726f 6a656374 4964223a ... 220a2020 5d0a7d0a }, error (null) 2021-10-25 10:38:29.422276-0400 App[46252:3492570] 8.8.0 - [Firebase/Analytics][I-ACS023001] Deep Link does not contain valid required params. URL params: { "deep_link_id" = "https://bolt-team-scheduling.firebaseapp.com/__/auth/callback?authType=verifyApp&recaptchaToken=03AGdBq24hxWY8ZdwbqIZOvA1N7VsOLrLwDw7A8lLUnCTGBqrto3iVYE1CXta5RYaXIzum-VDi6mchQukvhvZi49rjPT_jxdmGbGfBTe3y0pFT-wdKLVHIjJCVZnmcHGLifpT0yS5QSpttTNg1_2MXstauE8s0LbC0gLAAW0vJ3AXAJgTVOP0z971yUS12PJFtftA_c8L0fwJcpRRWG8SmmiYlAedn1N6COxDLA3euZxb8MySaDM0LWy5qWT9si6917T1vHMiI6WsYJjOoT_2BwZ8CkzF6dW-DdhkZuuquSthYj8mGZv2-YHQghvGb8RBD6cjEbho5yIWJLwaf4GzxR91CZB4-rrhjqa9jf9pqbBkZk04sNdK4Ei09yNRSJwfKpmnfGAAjLc71dKrXMhdU0cw20ri8i7CTv_8te9e9QrIZWiVe3ukmtftorgnPorC9kkyhTPDEsp-HZREf_5k2bhfimJNZmDblGE43H8B_4BkWLGNQTf1V5kk&eventId=jwyjgglzgy"; } 2021-10-25 10:38:30.327426-0400 App[46252:3492836] GTMSessionFetcher invoking fetch callbacks, data {length = 186, bytes = 0x7b0a2020 22736573 73696f6e 496e666f ... 6a655f41 220a7d0a }, error (null) ⚡️ TO JS {"verificationId":"AJOnW4SAn3TVG6LTiB6ZRc5zqqoQ1kmPLf_INgkUjYEvNw311HZ84LiNhX-KFoaZ78L6eytrLz5eqViEM7hddlhoRLVm8c4hg2NTv0V7-RJUZaPGuBzLu3OsSgK2RdmmHfE_O3RA656ACPia_dcCIKu1SdfXJzje_A"} ⚡️ TO JS {"callbackId":"11492224","verificationId":"AJOnW4SAn3TVG6LTiB6ZRc5zqqoQ1kmPLf_INgkUjYEvNw311HZ84LiNhX-KFoaZ78L6eytrLz5eqViEM7hddlhoRLVm8c4hg2NTv0V7-RJUZaPGuBzLu3OsSgK2RdmmHfE_O3RA656ACPia_dcCIKu1SdfXJzje_A"} ⚡️ [log] - cfaSignInPhoneOnCodeSent AJOnW4SAn3TVG6LTiB6ZRc5zqqoQ1kmPLf_INgkUjYEvNw311HZ84LiNhX-KFoaZ78L6eytrLz5eqViEM7hddlhoRLVm8c4hg2NTv0V7-RJUZaPGuBzLu3OsSgK2RdmmHfE_O3RA656ACPia_dcCIKu1SdfXJzje_A

Any thoughts/help would be greatly appreciated! The login works in all other ways, just would really like to get rid of the robot screen.

TIA

VictorienTardif commented 7 months ago

Hello @baumblatt , have you made progress on this point? The Firebase doc is pretty clear:

When silent push notifications are properly configured, only a very small percentage of users will experience the reCAPTCHA flow. Nonetheless, you should ensure that phone number sign-in functions correctly whether or not silent push notifications are available.