Verify & test
After integrating with the SDK, we recommend verifying and testing the integration before deploying to production. HUMAN has recommended checks that we encourage you follow to ensure your app works as expected and it delivers the best experience for your users.
Verify the integration
The Doctor App is a verification tool that comes with the HUMAN SDK. It simulates a typical user flow in your application and helps you ensure that the SDK is integrated correctly. When you enable it, the Doctor App displays a popup as part of the application flow to guide you on how to simulate a user flow.
The Doctor App includes assets that it uses for its own UI. These assets are only required for the Doctor App and aren’t needed in your production build. To minimize the SDK’s footprint, the SDK loads these assets dynamically at runtime.
Load Doctor App assets
Android
iOS
The Doctor App loads these assets automatically whenever you run the App with an internet connection.
The Doctor App’s Flow
- Set the
HSDoctorAppPolicy/enabledtotruewhile initializing the SDK.
Android
iOS
- Run your app. The Doctor App UI will appear.
Retrying blocked requests after the challenge is solved will not work while running the Doctor App. In this case, your request handler will receive a “challenge was solved” error.
- Select whether to start a new test or load the summary of a previous test if one exists.

- Select which product to test:
- Bot Defender
- Account Defender

- Review the detailed instructions on how to start a new test, what is expected, and steps to resolve issues.

-
Choose between:
- Native app framework: To test native URL requests.
- Web view framework: To test web view URL requests.

-
Run the test by using your app according to the instructions.
-
Review the test results on the summary screen. Explore detailed insights for each test and get troubleshooting tips for failed tests.

-
Export the test result to a JSON string from the summary screen. Share it with the support team if needed.
-
Exit the Doctor App. Your app will also be terminated.
Test the integration
To test the SDK, you can simulate challenges on various screens and scenarios in your app.
These tests are relevant for Bot Defender integrations only.
- Open Challenge Settings in the HUMAN Console.
- Select Testing (Native Mobile) tab.
- Retrieve the VID of your device by using one of the following methods:
- Using the VID Extractor:
- Click on Find your VID.
- Enter your device’s public IP.
- Select the relevant session.
- Using the SDK’s API:
- Use the
HumanSecurity/vid(forAppId:)function.
- Use the
- Using the VID Extractor:
- Enter the VID in the appropriate field in the Console.
- Click on Start Testing.
- In your app, trigger URL requests to your server to display a challenge. If a challenge doesn’t appear:
- Move your app to the background
- Bring it back to the foreground after few seconds.
- Trigger URL requests to your server again.
- Solve or cancel the challenge and verify how your app behaves.