Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iphone how to check the Airplane mode?

HI ,

i want to check wether Airplane mode is on or not .. how to check that ?

thanks + how to check that the user is using WIFI or GPRS OR EDGE . how to differentiate ??

like image 208
g.revolution Avatar asked Sep 10 '09 11:09

g.revolution


People also ask

How do I know if airplane mode is on?

On Android phones, airplane mode is activated by swiping down from the top of the screen two times to open the Settings panel. There, you'll see an airplane icon. When you activate it, your phone is on airplane mode.

What happens when someone texts you on airplane mode?

On An Android: If you successfully put your phone into “airplane mode” before the message is delivered to the recipient, the function blocks all cell and wifi signals from getting to your phone. That means, the potentially embarrassing text message won't go through.


2 Answers

If you just want show notification, when user is in airplane mode, then it's enough to enable SBUsesNetwork property in your app's plist file. When your code is using network, user is prompted to turn off Airplane mode automatically.

See e.g. this post.

like image 191
Teemu Kurppa Avatar answered Oct 02 '22 18:10

Teemu Kurppa


I'm not sure if you can check specifically for airplane mode but the reachability example from the iphone adc website enables you to check if the iphone has access to the internet.

like image 34
ennuikiller Avatar answered Oct 02 '22 20:10

ennuikiller