HSHybrid App Policy
class HSHybridAppPolicy
Properties
Link copied to clipboard
Allow the SDK to evaluate JavaScript code in your web views (for hybrid app support). When you disable JavaScript evaluation, the SDK could store cookies instead (depending on the run time environment). Default is true
.
Link copied to clipboard
Set this property to true
to support external web views, which are web views created outside the native side of the app but are still based on WebView
(for example, react-native-webview). Default is false
.
Functions
Link copied to clipboard
The SDK is setting cookies in your web views in order to sync between the native and the web sessions. For that, the SDK has to know you website's root domain for the HTTP cookie (e.g ".example.com"). Those domains can be set in the HUMAN's Portal, however, it recommended to set them directly in the SDK's policy.