How to Test the SDK in Your App

Testing the SDK integration in your app is essential to ensure the best experience for your users.

Bot Defender testing

For Bot Defender, you should simulate challenges in various screens and scenarios in your app.

How to simulate a challenge

  1. Open the Testing tool in the portal.
  2. Select the "Testing (Native Mobile)" tab.
  3. Retrieve the VID of your device:
    • Using the VID Extractor
      1. Click on the "Find your VID" button.
      2. Enter your device's public IP.
      3. Select the relevant session.
    • Using the SDK's API
      1. Use the HumanSecurity/vid(forAppId:) function to get VID.
      2. Enter the value in the VID field.
  4. Insert the VID into the relevant field.
  5. Click on the "Start testing" button.
  6. In your app, trigger URL requests to your server. You should get a challenge. if not:
    • Move your app to the background
    • Bring it back to the foreground after few seconds.
    • Trigger URL requests to your server again.
  7. Solve (or cancel) the challenge and verify how your app behaves.