@eskimo
Can you please confirm if just using the SMAppService will resolve the problem of obtaining SSID information?
Or do I need some additional entitlements or need to make adjustments to Location Services?
I am currently experiencing the same issue with obtaining SSID.
Here is the code example I use:
CWWiFiClient *client = [CWWiFiClient sharedWiFiClient];
CWInterface *interface = [client interface];
NSString *ssid = [interface ssid];
It returns nil on Sonoma.
This code is part of a LaunchDaemon with a plist file located in /Library/LaunchDaemons, which was registered using SMJobBless(). I understand that this method is now considered obsolete, but it was working fine before the Sonoma release.
Thanks in advance.
Topic:
Programming Languages
SubTopic:
Swift
Tags: