Continued connection failure after server connection failure while local network permission pop-up is displayed

We are trying to connect to Webdav.

The file server is in the same network.

So when we try to connect, the local network permission pop-up is displayed.

If the input information is incorrect in the first login attempt when this permission pop-up is displayed,

After that, even after fixing the normal connection, we cannot connect or log in with the message "NSURLErrorDomain Code=-1009", "Internet connection is offline."

This symptom seems to persist even after rebooting or deleting and deleting the app in the actual distributed app.

If you re-debug while debugging Xcode, you can connect normally.

(If you do not re-debug, it fails even if you enter the connection information normally.)

And it affects local connection, so you cannot connect to any local network server such as SMB or FTP. Also, you cannot browse the server list within the local network. (SMB)

Is there a way to initialize the local network status within the app to improve this phenomenon?

I tried turning Airplane mode ON/OFF, turning Wi-Fi ON/OFF, and turning local network permissions ON/OFF, but it did not work.

Also, this phenomenon seems to be a Sandbox for each app.

When connecting to the same local server from an app installed on the same iPhone/iPad device, the above phenomenon does not occur if the first connection is successful.

** Summary **

If you fail to connect to a server on your local network, then you will continue to fail to connect to the local server. This happens even when local network permissions are allowed.

The error message is NSURLErrorDomain Code=-1009

The current device is an iPhone device running iOS 18.1.1.

iOS doesn’t have a WebDAV API. Are you implementing WebDAV yourself? Is that based on URLSession?

Share and Enjoy

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

Continued connection failure after server connection failure while local network permission pop-up is displayed
 
 
Q