My app includes a menu bar icon that shows the status of a bluetooth connection. How can I make this app and launch it when a user logs in? Does the launch agent need to then launch a GUI App? Can the launch agent get the permission to use bluetooth or does that require a GUI App?
Get a launch agent to use Bluetooth
Does the launch agent need to then launch a GUI App? Can the launch agent get the permission to use bluetooth or does that require a GUI App?
Any app can be added to the "Open at Login" section in System Settings to be auto launched when a user logs in. To be able to prompt for Bluetooth permissions though you must have an app
Does the launch agent need to then launch a GUI App? Can the launch agent get the permission to use bluetooth or does that require a GUI App?
What's actually happening when you try to use CoreBluetooth?
There isn't actually any fundamental difference between a "launch agent" and "an app". If you're adding something to the menu bar, then you're "an app".
-
What API (AppKit, UIKit, or SwiftUI) are you built with and how are you making yourself faceless?
-
How are you setting up your agent? Using SMAppService or a plist?
-
Is your agent embedded inside an app or is it a standalone app bundle?
-
Does it work properly if you're NOT running as a faceless process?
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware