views:

52

answers:

1

My application's users don't like interruptions like incoming phone calls. I want to find out if the device is in Airplane mode, warn the user about possible interruptions and recommend invoking Airplane mode.

The reachability examples tell me if the device has a network connection, but it's possible that WiFi is on while the phone is in Airplane mode.

A: 

You should just be able to check the kSCNetworkReachabilityFlagsIsWWAN flag (have a look at the Reachability.m class and change it to your heart's content).

nicktmro
I am familiar with Reachability.m. kSCNetworkReachabilityFlagsIsWWAN flag doesn't tell me what I want to know. Its purpose is to tell me if a network connection is going over cellular, not if cellular is available. If both cellular and WiFi are available, this flag is false.
iter