Skip to content
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

Ask for camera and microphone access on macOS #50

Open
Tracked by #635
ShGKme opened this issue Mar 21, 2023 · 11 comments
Open
Tracked by #635

Ask for camera and microphone access on macOS #50

ShGKme opened this issue Mar 21, 2023 · 11 comments
Labels
bug Something isn't working os: Mac 🍎

Comments

@ShGKme
Copy link
Contributor

ShGKme commented Mar 21, 2023

Since macOS 10.14 Mojave it is required to ask media access on Mac.

What to do, if the user refuses?

https://www.electronjs.org/docs/latest/api/system-preferences#systempreferencesaskformediaaccessmediatype-macos

@ShGKme ShGKme added the bug Something isn't working label Mar 21, 2023
@fabricemous
Copy link

I did not explicitly refuse access I believe. Perhaps something I missed so how can I make Talk ask me access again. Or otherwise where can I change these in my system settings.

@gymnae
Copy link

gymnae commented Apr 22, 2023

Happened to me as well, the app did not request permission and I'm not able to use microphones or cameras

@wolfspyre
Copy link

yeah. seems like the cause is already identified and a PR exists to address from march #80
What needs to happen to get that merged and a new build minted?

@gymnae
Copy link

gymnae commented Jul 14, 2023

macOS is not in focus until version 1 release, apparently

@bentuna
Copy link

bentuna commented May 2, 2024

I can confirm that under macOS 14 Sonoma the issue still exists: no asking for camera or microphone permission and therefore no usage for calls possible.

@cyr06
Copy link

cyr06 commented May 16, 2024

MacOS Sonoma + Talk Version 0.29.0
(https://github.com/nextcloud-releases/talk-desktop/releases/download/v0.29.0/Nextcloud.Talk-darwin-x64-0.29.0.zip)
I wasn't ask to allow mic and camera so impossible to make a call.

@ShGKme
Copy link
Contributor Author

ShGKme commented May 16, 2024

I will try to check this issue again next week 👀

@benjamindahl
Copy link

hey people, I've managed to get it to work.
Coming from another problem I realised that Talk-Desktop does not ask for camera and microphone permission.
I used https://github.com/DocSystem/tccutil to grant them with the following command manually:

Download
or clone the python-script to your computer. Then run sudo /usr/bin/python3 ./tccutil.py -p /Applications/Nextcloud\ Talk.app -e --microphone --camera

Bildschirmfoto 2024-07-08 um 08 13 45

Bildschirmfoto 2024-07-08 um 08 21 08

@benjamindahl
Copy link

Suggestion: title of the bug should be changed to just macOS, because it affects all recent macOS versions

@crckrmn77
Copy link

hey people, I've managed to get it to work. Coming from another problem I realised that Talk-Desktop does not ask for camera and microphone permission. I used https://github.com/DocSystem/tccutil to grant them with the following command manually:

Download or clone the python-script to your computer. Then run `sudo /usr/bin/python3 ./tccutil.py -p /Applications/Nextcloud\ Talk.app -e --microphone --camera`

Can confirm this worked for me on M2 MBP running Sonoma 14.5.

@bentuna bentuna changed the title Ask for camera and microphone access on macOS 10.14 Mojave Ask for camera and microphone access on macOS Jul 23, 2024
@wolfspyre
Copy link

That's cool! Really. Neat find @benjamindahl THANK YOU FOR SHARING.

THAT BEING SAID, This is NOT A FIX but a (USEFUL) hacky workaround.

The fix is that the application must actually request the privileges it needs....
This is handled for talk by the browser, but as a standalone client, the permissions must be explicitly declared

(I believe the entitlement needs to be baked into the app cert too but I'm not a mac app dev ;) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working os: Mac 🍎
Projects
None yet
Development

No branches or pull requests

9 participants