I want that the user use the microphone in the app, and add the appropriate key to the info.plist "Privacy-MicrophoneUsageDescription", If user tap the microphone button, window with a question for usage permission appears. If the user taps on "Allow", the app works fine without some issues. But if not, and press the microphone button again, the app crashes.
What I want is, to check for the NSMicrophoneUsageDescription status, every time the button is pressed. If denied, ask the user for the permission again.