acsant / react-native-recaptcha

A react native wrapper for google recaptcha v3
MIT License
39 stars 48 forks source link

Can't handle url: "url" #7

Open ForceTower opened 5 years ago

ForceTower commented 5 years ago

I've been trying to use this component in an app but everytime it pop's up and i solve the challenge, it shows me that "Can't handle url: https://our_url.com/".

<ReCaptcha onReady={() => console.log('on ready')} siteKey={constants.CAPTCHA_SITE_KEY} url={'https://our_url.com/'} action={'verify'} reCaptchaType={1} onExecute={this.onCaptchaExecute} />

The onCaptchaExecute function just console logs the token but it's never called and neither is the on ready.

Tested on both iOS and Android.

andrewvergel commented 5 years ago

@ForceTower you can implement by this way -> https://github.com/thareekanvar/react-native-firebase-phone-auth for me this work properly

AndreyPatseiko commented 5 years ago

Have the same problem. Any updates?

ForceTower commented 5 years ago

Andrey, in my case, after going through a Google Codelab on CAPTCHA, I realized that the recaptcha we where using was the v2... Then I created a solution using a webview and the code on the Codelab

amitmehtacode commented 5 months ago

Use this library

https://www.npmjs.com/package/react-native-secure-captcha-v3