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.
Help CenterOpenAPI SpecStatus
OverviewInquiriesTransactionsAPI ReferenceChangelog
OverviewInquiriesTransactionsAPI ReferenceChangelog
  • Overview
    • Inquiries Overview
    • Inquiry Model Lifecycle
    • Inquiry Templates
  • Managing inquiries
    • Creating Inquiries
    • Resuming Inquiries
    • Accessing Inquiry status and data
  • Hosted Flow integration
  • Embedded Flow integration
      • Parameters
      • Prefilling Fields
      • Client Callbacks
      • Client Methods
      • Security
      • Troubleshooting common issues
      • WebView Considerations
  • Mobile SDK integration
    • Overview
    • Webview
  • Troubleshooting
    • Troubleshooting Steps
    • Troubleshooting Common Issues
LogoLogo
Help CenterOpenAPI SpecStatus
On this page
  • Native SDKs Recommended
  • Required URL Parameter
  • WebKit Inline Media Playback
  • Camera Configuration
  • External Network Requests
  • Custom User Agents
  • Additional Resources
Embedded Flow integrationReference guides

WebView Considerations

Was this page helpful?
Previous

Mobile Integration

Next
Built with

When implementing Persona’s Embedded Flow within a WebView, there are several important considerations and configuration requirements to ensure optimal performance and functionality.

Native SDKs Recommended

We strongly recommend using our native mobile SDKs (Android, iOS) instead of WebView where possible. WebView integrations are more difficult to support due to performance constraints of WebView technology.

For more information, see Native mobile integration vs. WebView.

Required URL Parameter

When implementing Embedded Flow in a WebView, you must include the is-webview=true parameter in your URL. This parameter activates the WebView flow and ensures proper functionality.

Your URL should look like:

https://withpersona.com/verify?is-webview=true&template-id=tmpl_123&environment-id=env_123

WebKit Inline Media Playback

Please ensure allowsInlineMediaPlayback is enabled when creating a webview on a webkit browser (mobile Safari). This defaults to false and the camera preview will incorrectly open as a fullscreen live broadcast.

Camera Configuration

The WebView Flow requires access to the device camera. Please include the NSCameraUsageDescription key your app’s Info.plist file as described in the Apple Developer documentation.

External Network Requests

Persona makes external network calls within the Inquiry Flow that need to be allowlisted for the flow to properly function. Certain frameworks such as Cordova require such requests to be allow listed. Please include *.withpersona.com/* in such an allow list if needed.

Custom User Agents

Custom user agents can be parsed incorrectly and cause the flow to behave incorrectly or incorrectly trigger device or browser version specific behavior. We recommend using the default user agent provided by your WebView implementation.

Additional Resources

For detailed implementation examples and code snippets, see our legacy WebView documentation:

  • Android WebView Implementation
  • iOS WKWebView Implementation
  • WebView Troubleshooting