Hi Team, I want to perform bluetooth advertising (no need to pair) from a macOS machine even before the user login to the macOS(i.e before user provide password and submit). Is there a way to achieve this?
if I create a user agent will I be able to invoke this user agent before login to user session?
No.
Because my need is to perform bluetooth advertising before user login
There’s no supported way to do this.
My colleague was suggesting that you split the Bluetooth parts of your daemon out into an agent so that the agent can do Bluetooth work on the daemons behalf. The user can then grant the agent the necessary privileges. This approach works for many products that have a daemon that needs to access Bluetooth.
However, it won’t work in the pre-login environment because:
- The only agents that run pre-login are
launchdpre-login agents. - Those run as root, so there’s no way for the user to grant them the required privilege.
I’m presuming that you’re trying to do this as part of your authorisation plug-in feature. If so, there’s no path forward for you currently )-: The user must explicitly grant access to Bluetooth and that’s not possible in the pre-login environment because there is no user yet.
My advice is that you file an enhancement request explaining your situation and requesting that Apple provide a path forward for you. Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"