Solved Mac OS Mojave privacy prompt not appearing in notarized builds.
-
In signed / notarized Mac builds on Mojave, I can't seem to get the microphone permissions to work correctly. I have values in the Info.plist that, on unsigned builds, will prompt the user for permissions, but once signed and notarized, I can't seem to get new users / installations the input from the mic.
For reference, here was a past issue that has been solved (and my current situation is in the last comment). Thanks! -
Re: Mac OS Mojave privacy prompt not appearing in notarized builds.
Still no luck on my end with this. Anyone else have any ideas what the differences could be for this between signed and unsigned?
-
@Joshua-Parmenter Same problem here. I have an app that uses the microphone for audio capture. When built with Qt 5.9.x/XCode 9 it runs fine and I get automatic prompts to access the microphone, even when the app is signed.
When built with Qt 5.12.5 / XCode 10, it works when the app is not signed. When it is signed and/or notarized, I don't get the automatic prompt.
So I added a manual prompt as described at https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_macosWith that, the app works when it is not signed. When it is signed and/or notarized, calling for the microphone access prompt causes a crash.
-
@Karl-Wolfram - I don't get a crash with that, and I actually have that in my project already. So - doubly troubling that I don't get the prompt! That being said - what is the crash you see? More than happy to try and help you figure that out if you can post a crash dump here or in a message to me. Thanks for your feedback, though - at least I know it isn't just my project!
-
Anyone else seeing this issue? Want to surface it once more in case anyone else has some insights.
-
I finally got this working. The info plist needs to have a string in place to ask for permissions (as mentioned already) and the app, when signed, needs to have entitlements attached that include:
<key>com.apple.security.device.audio-input</key> <true/> <key>com.apple.security.device.microphone</key> <true/>
Hope that helps someone else in the future!