The Cognigy Click To Call SDK requires a browser that supports the WebRTC APIs: RTCPeerConnection, getUserMedia.
Web Browsers
WebRTC APIs are only available in secure contexts such as HTTPS or localhost. Ensure your application is served over HTTPS in production.
| Browser | Minimum Version |
|---|
| Chrome | 93+ |
| Firefox | 92+ |
| Safari | 15.4+ |
| Edge | 93+ (Chromium-based) |
Mobile Browsers
Mobile browsers may have stricter autoplay policies for audio. Ensure that calls are initiated by a user gesture, for example, a button tap, to avoid audio playback issues.
| Browser | Platform |
|---|
| Chrome for Android | Android 93+ |
| Safari for iOS | iOS 15.4+ |
| Firefox for Android | Android 92+ |
Runtime Detection
Use checkWebRTCSupport() to verify browser compatibility at runtime before creating a client:
import { checkWebRTCSupport } from '@cognigy/click-to-call-sdk';
const support = checkWebRTCSupport();
if (!support.supported) {
console.error('Missing WebRTC features:', support.missing);
} else {
console.log('WebRTC is fully supported');
}