Skip to content

🐛 Fix Table and Add Required Usage Descriptor #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,21 @@ and add `"Vapi"` to your application/library target, `dependencies`, e.g. like t
You will need to update your project's Info.plist to add three new entries with the following keys:

- NSMicrophoneUsageDescription
- NSCameraUsageDescription
- UIBackgroundModes

For the first two key's values, provide user-facing strings explaining why your app is asking for microphone access.
For the first two key's values, provide user-facing strings explaining why your app is asking for microphone and camera access.

UIBackgroundModes is handled slightly differently and will resolve to an array. For its first item, specify the value voip. This ensures that audio will continue uninterrupted when your app is sent to the background.

To add the new entries through Xcode, open the Info.plist and add the following four entries (Camera is optional):
To add the new entries through Xcode, open the Info.plist and add the following four entries:

| Key | Type | Value |
|--------------------------------------|--------|----------------------------------------------|
| Privacy - Camera Usage Description| String "Your app name needs camera access to work
| Privacy - Microphone Usage Description| String | "Your app name needs microphone access to work" |
| Required background modes | Array | 1 item |
| ---> Item 0 | String | "App provides Voice over IP services" |
| Key | Type | Value |
|----------------------------------------|--------|-------------------------------------------------|
| Privacy - Camera Usage Description | String | "Your app name needs camera access to work" |
| Privacy - Microphone Usage Description | String | "Your app name needs microphone access to work" |
| Required background modes | Array | 1 item |
| ---> Item 0 | String | "App provides Voice over IP services" |

If you view the raw file contents of Info.plist, it should look like this:

Expand Down