Disable Microphone Access on iOS?

I specifically do not want microphone access for my app — it only generates sound but does not need any input. Since some non-tech savy users get scared from seeing the “We need permission for your microphone” popup I tried to turn it off. Disabling it in the Jucer still causes the app to crash:

[access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.

Is there a way to completely disable any attempt on JUCE’s part to get the microphone with an audio app?

Nevermind. This fixed it:

audioDeviceManager.initialise(0, 2, nullptr, true);

I just needed to ask for zero input channels.

was just about to ask that :wink:
Glad it works…

Gotta love stack traces!

1 Like