> This page is for Applications Protection.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.humansecurity.com/llms.txt.

# Hybrid App support

#### v3.0

## What is Hybrid App

An Hybrid App uses both native URL requests and web views to communicate with your server. In the context of HUMAN, it's important to make sure both native requests and web views are synced together to make sure end users will get the expected behavior from your app.

## How to enable Hybrid App support

To enable hybrid app support, you should enable it and set your domains in the policy for the relevant AppID. Here is an example:

```swift
policy.hybridAppSupportEnabled = true
policy.set(domains: ["my-domain.com"], forAppId: "<APP_ID>")
```

```objectivec
policy.hybridAppSupportEnabled = YES;
[policy setWithDomains:[NSSet setWithObject:@"my-domain.com"] forAppId:@"<APP_ID>"];
```

> **Apple Pay on the web**
>
> If your app using [Apple Pay on the Web](https://developer.apple.com/documentation/apple_pay_on_the_web) you should disable JavaScript evaluation by the SDK. In order to protect the security of Apple Pay transactions in `WKWebView`, Apple Pay cannot be used alongside of script injection APIs. You can do this by setting the policy. Here is an example:
>
> ```swift Swift
> policy.allowJavaScriptEvaluation = false
> ```
>
> ```objectivec Objective-C
> PerimeterX.INSTANCE.setupWebView(webView, webViewClient);
> ```