Skip to main content
When integrating Hireflix inside an iOS WebView (WKWebView), you may encounter one of the following issues:
  • “Open this on Safari”
  • “Your camera or microphone is not working”
These issues are related to how iOS handles WebViews and media permissions. Below you’ll find the complete solution.

1. Fixing the “Open this on Safari” Error

By default, Hireflix detects certain in-app browsers or WebViews and may block them for compatibility reasons.

✅ Solution

Append the following query parameter to your interview URL:

Example

Instead of:
Use:
This tells Hireflix that the interview is intentionally being loaded inside an iOS WebView.
Ios Safari Issue

2. Fixing the “Camera or Microphone is Not Working” Error

Even after enabling WebView support, iOS will not automatically grant camera or microphone access. For security reasons, your app must explicitly:
  • Declare camera & microphone usage in Info.plist
  • Request runtime permissions
  • Properly configure WKWebView to handle media permissions

Step 1: Add Privacy Permissions in Xcode

In Xcode:
  1. Select your project in the navigator
  2. Select your app target
  3. Open the Info tab
  4. Click the “+” button to add new keys
  5. Add:
  • Privacy - Camera Usage Description
  • Privacy - Microphone Usage Description
These are required. Without them, permission requests will silently fail.
Xcode Ios Issue

Step 2: Import Required Frameworks

Step 3: Request Camera & Microphone Permissions

Add permission request logic in your app:

Step 4: Configure WKWebView to Handle Media Permissions

If you’re using WKWebView, implement the WKUIDelegate method:

Step 5: Assign the WKWebView UI Delegate

When creating your WebView:
Setting the uiDelegate is critical. Without it, media permission requests will not be handled correctly.

Summary

When embedding Hireflix in an iOS WebView:
  1. ✅ Add ?ios_webview=true to the interview URL
  2. ✅ Add camera & microphone usage descriptions in Info.plist
  3. ✅ Explicitly request AVFoundation permissions
  4. ✅ Implement WKUIDelegate media permission handling
  5. ✅ Assign the WebView’s uiDelegate
Once these steps are completed, interviews will work correctly inside your iOS app.