We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I tried to implement it keep buffering and never show the challenge
com.github.hcaptcha:hcaptcha-android-sdk:1.1.0
androidx.appcompat:appcompat:1.2.0
The code I'm using is
final String SITE_KEY = "site key here"; final HCaptchaConfig hconfig = HCaptchaConfig.builder() .siteKey(SITE_KEY) .apiEndpoint("https://js.hcaptcha.com/1/api.js") .size(HCaptchaSize.NORMAL) .loading(true) .build(); HCaptcha.getClient(MainActivity.this).verifyWithHCaptcha(hconfig) .addOnSuccessListener(new OnSuccessListener<HCaptchaTokenResponse>() { @Override public void onSuccess(HCaptchaTokenResponse response) { String userResponseToken = response.getTokenResult(); showMessage("Success! Token: " + userResponseToken ); } }) .addOnFailureListener(new OnFailureListener() { @Override public void onFailure(HCaptchaException e) { showMessage("Error: " + e.getMessage() ); } });
The text was updated successfully, but these errors were encountered:
@Amitoj02 maybe you observe some errors in logcat?
Sorry, something went wrong.
@Amitoj02 please try with one of the test sitekeys: https://docs.hcaptcha.com/#integration-testing-test-keys and if that works, double-check the sitekey entered.
Alright, so I tried to compile again and it actually worked magically . Maybe I missed something or it was temporary issue.
No branches or pull requests
When I tried to implement it keep buffering and never show the challenge
com.github.hcaptcha:hcaptcha-android-sdk:1.1.0
androidx.appcompat:appcompat:1.2.0
The code I'm using is
The text was updated successfully, but these errors were encountered: