Daily iOS
Networking

Handling connectivity state

There's code that checks Reachability at launch so it can show a "No internet connection" popup. What's the problem with that approach?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

A preflight check that blocks requests based on connectivity produces both false positives and false negatives. Apple's rule is to always send the request and handle the failure.

Share a question