Post

Replies

Boosts

Views

Activity

Reply to iOS 18 local network permission is incorrect
I wanted to 1+ this issue since I am now encountering it myself. This seems to be some issue with the networking in iOS 18. I managed to create a function that synthetically pops this permission request by creating a broadcast sender, and if I accept the permission everything works well. If I don't accept the permission everything breaks, and even if I allow it from the app's settings I still get an error in the logs: Task <C0A99EFB-CD6E-4841-A2F5-27FA54046CBB>.<1> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x3022664c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (Local network prohibited), interface: en0[802.11], ipv4, uses wifi, _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <C0A99EFB-CD6E-4841-A2F5-27FA54046CBB>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <C0A99EFB-CD6E-4841-A2F5-27FA54046CBB>.<1>" ), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=http://192.168.31.221:8081/, NSErrorFailingURLKey=http://192.168.31.221:8081/, _kCFStreamErrorDomainKey=1} Even if I remove the app and reinstall it, I get the prompt to allow the permission and I accept it, I still get the same error in the logs and the networking doesn't work. Only when I restart the iPhone this issue goes away. I hope this gets the attention it deserves, this is a huge bug for apps that uses local network to function.
Feb ’25