Network privacy permission check

Is there an API to check to see if the user has previously granted or more importantly declined network permission? I am not seeing anything in the resources of the video.

Replies

can you say whether or not there will be a solution for the
NSNetServiceBrowser crowd at an undisclosed point in the future?

Sorry but I can’t comment on The Future™.

Honestly though, I’d switch over to NWBrowser anyway. The future of Apple’s general-purpose networking APIs is:
  • NSURLSession, for all things HTTP\[S\]

  • Network framework, for anything lower level

NSNetServiceBrowser hasn’t been deprecated — and it may never be deprecated because a lot of apps use it — but it’s no longer where the action is.

Note that NWBrowser does not require Swift. Well, NWBrowser does, but you can access the same functionality from C-based languages using nw_browser_t.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"