Use the native Android reCAPTCHA API in Appcelerator Titanium with Hyperloop.
var reCAPTCHA = require('ti.recaptcha');
// Initialize service
reCAPTCHA.initialize('<YOUR_SITE_KEY>');
// Verify current activity
reCAPTCHA.verify(function(e) {
if (e.success === false) {
Ti.API.error('Error verifying current window: ' + e.error);
return;
}
alert('YEY!');
});
Please check Resources/app.js for a full example.
- Hans Knöchel (@hansemannnn / Web)
MIT
Code contributions are greatly appreciated, please submit a new pull request!