AvdLee / RocketSimApp

Enhancing the iOS simulator for productivity
570 stars 20 forks source link

Add support for NWPathMonitor blocking with Airplane mode #486

Open AvdLee opened 3 months ago

AvdLee commented 3 months ago

Airplane mode currently doesn't block NWPathMonitor requests.

Reported by F. Pierre and Z. Bognar via email

AvdLee commented 3 months ago

Started a thread on Apple's forums as I wonder whether this at all is possible.

Apple recommends testing NWPathMonitor on an actual device since the Simulator is unreliable. The Simulator uses NWPathMonitor from macOS, which behaves different than on iOS.

Yet, I do believe when Airplane mode is enabled, developers just want to see their reachability logic working. If I'm able to return unsatisfied consistently, that would be a great improvement already.

Let's see what they'll reply!