Embedding Whereby in iOS
Below are the recommended approaches to embed Whereby in a native iOS app using a WebView.
Last updated
Was this helpful?
Below are the recommended approaches to embed Whereby in a native iOS app using a WebView.
Last updated
Was this helpful?
WebViews are powerful built-in components that allow loading URLs within a native app. When embedding Whereby, depending on your implementation, you can use the following types of URLs:
A Whereby room URL (which takes the user directly to the Whereby pre-call screen).
A custom web app that embeds Whereby using the Embedded element.
A React app that embeds Whereby with the React Hooks SDK.
Ensure the following permissions are declared in your Info.plist
file:
NSMicrophoneUsageDescription -
NSCameraUsageDescription -
NSPhotoLibraryUsageDescription - (for file sharing)
NSPhotoLibraryAddUsageDescription - (for file sharing)
supports embedding pages that use WebRTC from iOS 14.5 onwards. Below is a basic example of how to implement a WKWebView.
Redirect to a browser (Safari by default) for iOS versions lower than 14.3:
Here is an example on how to handle different solutions, depending on the iOS version:
When the app is sent to background, the camera is disabled. If you need the microphone to continue working while the app is in the background, we recommend redirecting to Safari app.
For a complete example, check out our public repository: .
For iOS 14.3 and 14.4, use to open a website containing an iframe with its src
specified as a Whereby room, alongside a custom user interface:
To use Whereby with Cordova (Phonegap) please use the plugin for