1

I am studying about coding and I got a question to control airplane mode in iphone programmatically

For android phone, we can use usb connection and adb to send unix command to control airplane mode.

Is there any possibility to control airplane mode by unix command and lighting cable connection?

I was checking ios: turn on/off airplane mode from code for iPhone / iPad

How to check Airplane mode in background in iPhone?

but i am not clearly sure if it is possible...

tripleee
  • 139,311
  • 24
  • 207
  • 268
NBB
  • 97
  • 1
  • 3
  • 12
  • 1
    Possible duplicate of [Toggling AirPlane mode in iOS Programmatically](https://stackoverflow.com/questions/20469425/toggling-airplane-mode-in-ios-programmatically) – Alex Cio Aug 01 '17 at 11:56

2 Answers2

1

No, you just can't do that.

An app has to adopt to the current network state, not control it.

Tom
  • 1,299
  • 9
  • 8
  • thanks!! so not like Android phone, we can't use debug or developer mode to wirely restart airplane mode ? um... thanks :) – NBB Oct 05 '16 at 21:31
0

You would need to access the private API and this would mean, you can't upload the app to the App Store because it is not allowed to use the private API in productive mode.

Alex Cio
  • 5,752
  • 4
  • 40
  • 73