Using Google reCAPTCHA in Android Application
Google’s reCaptcha API protects your website / app from malicious traffic. You might have seen the reCaptcha integrated on web pages. You can integrating the same in your Android apps too using SafetyNet API. The service is free to use and it will show a Captcha to be solved if the engine suspects user interaction to be a bot instead of human. In this article, we’ll build a simple feedback form and integrate the captcha to avoid the form submission by bots. Not just the forms, you can integrate the captcha in any module in your app. 1. How it Works? The reCAPTCHA will be validated by making certain network calls between your app, SafetyNet server and your server. First, you need to obtain the SafetyNet key pair by registering your app. You will get Site Key and Secret . Site Key will be integrated in android app and it can be public. Secret should kept on your server and it shouldn’t be exposed. When reCaptcha is invoked, it will show the Captcha challenge to us...