It's still not clear how to request Location Services permissions for a non-UI app.
@eskimo I would greatly appreciate it if you could clarify a few points:
There is no way to obtain location permissions for non-UI apps, like simple console apps. Is that correct?
As far as I understood your previous comments, LaunchAgent installed by SMAppService() can obtain Location permissions and retrieve SSID info. What are the requirements for this? Should SMAppService() be called by the UI app (let's call it the 'installer'), or can a console app also invoke SMAppService()? It's also unclear which app should possess the com.apple.security.personal-information.location entitlement and the NSLocationAlwaysUsageDescription definition: the 'installer' or the LaunchAgent?
Thanks in advance.
Topic:
Programming Languages
SubTopic:
Swift
Tags: