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 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
      • Multiple AppIDs support
      • Integration with React Native
      • Integration with gRPC [BETA]
      • Migrating SDK from v1 to v2
    • How to test your app with the SDK
  • Android SDK
    • What's New
    • How to test your app with the SDK
LogoLogo
Login
Login
HUMAN DashboardHUMAN WebsiteRequest a Demo
On this page
  • v2.x
iOS SDKv2

Multiple AppIDs support

Was this page helpful?
Previous

Integration with React Native

Next
Built with

v2.x

The SDK has support for multiple AppIDs. If your app communicates with multiple servers which have different AppIDs you should make sure that the correct headers are sent to each server.

You can configure multiple AppIDs for the HUMAN SDK, by calling the PerimeterX/start(appId:delegate:enableDoctorCheck:completion:) function for each AppID you have.

When using multiple AppIDs, you should:

  1. Specify the relevant AppID anytime you call functions in the HUMAN SDK.
  2. Set the domain list in the policy for each AppID. Here is an example:
1let policyForAppId1 = PXPolicy()
2policyForAppId1.domains.insert("my-domain-1.com")
3PerimeterX.setPolicy(policy: policyForAppId1, forAppId: "<APP_ID_1>", completion: nil)
4
5let policyForAppId2 = PXPolicy()
6policyForAppId2.domains.insert("my-domain-2.com")
7PerimeterX.setPolicy(policy: policyForAppId2, forAppId: "<APP_ID_2>", completion: nil)