For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HUMAN DashboardHUMAN WebsiteRequest a Demo
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
    • Overview
  • Mobile SDK (for Android, iOS, and visionOS)
    • Android changelog
    • iOS, iPadOs, & visionOS changelog
    • Expo changelog
    • React Native Wrapper changelog
  • iOS SDK
    • What's New
    • How to test your app with the SDK
  • Android SDK
    • What's New
      • How to integrate the SDK in your application
      • How to verify the integration in your app with the SDK
      • Callbacks from the SDK
      • How to retry blocked requests
      • Integration with React Native
      • Integration with gRPC [BETA]
      • Migrating SDK from v1 to v2
    • How to test your app with the SDK
LogoLogo
Login
Login
HUMAN DashboardHUMAN WebsiteRequest a Demo
On this page
  • v2.x
Android SDKv2

How to retry blocked requests

Was this page helpful?
Previous

Integration with React Native

Next
Built with

v2.x

URL Requests that were blocked by HUMAN don’t reach your server. Therefore, after the user solves the challenge you may want to retry those requests. At this point the SDK does not provide an option to retry those requests automatically, but there is a way to do this using the “block response with the challenge result”. This feature allow you to get the error from your URL request after the user solves the challenge (instead of before solving it). Then, you can retry the URL request immediately. To enable this feature, you should set the PXPolicy/delayResponseUntilChallengeSolvedOrCancelled to true in the policy.

1policy.delayResponseUntilChallengeSolvedOrCancelled = true

The automatic interceptor (PXPolicy/requestsInterceptedAutomaticallyEnabled) must be true in order to use this feature.