Post

Replies

Boosts

Views

Activity

Reply to IOBluetoothDevice registerForConnectNotifications callbacks not working (no callbacks) when process run as daemon/root under Sonoma (works on Ventura)
Hi @Gualtier Malde , thanks for clarifying. Does that mean that there is no way one can access the IOBluetooth framework before some user logs in? Are there any alternatives for accessing Bluetooth settings programmatically on system startup (before user login)? To give a bit of context, I built myself a handy command line tool for personal use that uses the IOBluetooth framework to ensure that my keyboard and trackpad are connected. I then created a simple launch daemon plist to run this tool on system boot. This worked flawlessly on Ventura, but stopped working on Sonoma. I tried adding the tool as well as the launchd binary to TCC manually by dragging them into the Privacy and Security -> Bluetooth settings window, but this doesn't seem to help. Thanks!
Oct ’23