Overview
Request camera and microphone access before starting the video session. On iOS, you declare usage in Info.plist (or Xcode build settings); the system prompts the user the first time the app accesses capture devices.
Camera and Microphone Access (iOS)
Unlike Android’s runtime permission APIs, iOS requires privacy usage descriptions before AVFoundation can open the camera or mic.
In Xcode, select your project and app target.
Open Build Settings and search for Info.plist Values (or edit
Info.plistdirectly).Set:
- Privacy - Camera Usage Description —
$(PRODUCT_NAME) uses the camera. - Privacy - Microphone Usage Description —
$(PRODUCT_NAME) uses the microphone.
- Privacy - Camera Usage Description —
Call your session setup only after you intend to publish—for example from
ContentView.onAppearor a Connect button:
Add a placeholder setup() on VonageVideoManager that you will implement in the next step:
iOS-specific: If the user denies camera or microphone access in Settings, publishing fails and you will not receive observability metrics for local capture. Handle OTPublisher / OTSubscriber error delegates in production apps.
Next: Connect to the session, publish with sender-side statistics enabled, and subscribe to remote streams.
Client Observability
Learn how to use client observability to monitor real-time quality metrics for a video call with Vonage Video SDK.