I need a way to detect if the iPhone is in Airplane Mode or not, I did some research and found:
iphone how to check the Airplane mode?
Which does not work, also I know I can set SBUsersNetwork to show an alert when in airplane mode, but it will ask user to switch on WIFI but my app need user to use 3G and WIFI simply does not work, so is there any straight forward way, in CoreTelephony that I can do my job?
Thanks!
It cannot be done using public API's.
In IOS 5.1, you can do as follows using undocumented private API's. This is not recommended by apple and cannot be shipped to app store.
Copy paste the below contents into RadioPreferences.h
Then try as below.
Basically: no. You cannot do this. What you can do is use the Reachability samples from Apple to detect if a network connection is available.