How to Integrate reCAPTCHA 2.0 in Android

After configuring the app everything is working fine but sometimes asking for google reCaptacha.

The solution: First of all turnoff desktop mode update rocket_web.io file and check again.

In case of not resolved, now from your HTML file, you can run the Bridge Class as a Javascript function (Use version 1.3.5 or above):

<div class="g-recaptcha" data-sitekey="YOUR_CAPTCHA_SITE_KEY" data-callback="captchaResponse"></div>

<script type="text/javascript">
    function captchaResponse(token){
        BridgeWebViewClass.reCaptchaCallbackInAndroid(token);
    }
</script>

Leave a Reply