Created
February 25, 2022 15:44
-
-
Save doozMen/0b5fc54c765bccb7c13792caa4eaa51c to your computer and use it in GitHub Desktop.
Uses bonjour networking to relialby check if user has granted local network access with async await as of iOS14
@Rytiggy you need to schedule the netService on a run loop (I did it on the main runloop)
netService?.schedule(in: .main, forMode: .common)
@doozMen is this still working for you on iOS 18?
update: I was missing the NSLocalNetworkUsageDescription
key on Info.plist
, which for some reason wasn't necessary for iOS 17 and below. Seems it is required on iOS 18.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
netServiceDidPublish never gets called, could you help me understand why?