Disable Microphone Access on iOS?


#1

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?


#2

Nevermind. This fixed it:

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

I just needed to ask for zero input channels.


#3

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


#4

Gotta love stack traces!