Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute not working in iPhone #13

Open
jawadm opened this issue Dec 3, 2019 · 4 comments
Open

Execute not working in iPhone #13

jawadm opened this issue Dec 3, 2019 · 4 comments

Comments

@jawadm
Copy link

jawadm commented Dec 3, 2019

I implemented an invisible Recaptcha in my app. The onReady fires for both Android and iOS but onExecute doesn't for iOS, at least on my iPhone. Is there a way to get the token with a function call?

      <ReCaptcha
        ref={ref => {
          this.recaptcha = ref;
        }}
        containerStyle={{ backgroundColor: 'transparent' }}
        siteKey={Config.RECAPTCHA_SITE_KEY}
        action="my_action"
        url={Config.RECAPTCHA_URL}
        reCaptchaType={1} 
        onReady={this.onRecaptchaReady()}
        onExecute={res => {
          this.onRecaptchaExecute(res);
        }}
      />
@lbudakov
Copy link

@jawadm you have an error with onReady and this is why it works. In your case on ready is called on render as you are not having it as a callback function but instead calling it.

Anyhow I think I had the same problem and managed to resolve it. In my case when the captcha was loaded It opened the web view without calling onExecute.

Gould you please describe what happens and if we have the same problem I will open a pull request.

@gusoskar
Copy link

gusoskar commented Jan 6, 2020

I have the same problem. Neither onReady or onExecute are triggering. I'm testing on Android with react-native 0.61.5

@BajajSaajan
Copy link

@gusoskar @jawadm @lbudakov Guys, Is anyone able to get the token? Kindly assist, if anyone able to get the token.

@amitmehtacode
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants