Code Block userInfo
was ignored.I already to try to use
Code Block CFNotificationCenterGetDistributedCenter()
It can't communicate between System Extension and APP
Correct. This is documented behaviour for sandboxed processes.processes can communicate through Darwin Notification Center. But userInfo ignored.
Correct. The sysex is running as root and the container app is running as the logged in user, so shared app groups aren't particularly useful because they are scoped to the current user.It means the Container App has no way to create or access \[the socket’s path\]
XPC is by far the best way to deal with this problem.Is there a way more simple than XPC?
If you want to preserve your existing investment in UNIX domains sockets you can create a minimal XPC interface that allows the container app to request a socket from the server (the server can create the socket pair and send one side to the app via the XPC response).
But, honestly, I think you’d be better off going ‘all in’ an XPC. It’s the preferred IPC mechanism on our platforms.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"