If you are not sending a request to the App Store, you can check the status bar using the private API to see if the flight mode icon is present. This checks the hierarchy of the status bar view to see if there is a UIStatusBarAirplaneModeItemView in the UIStatusBarAirplaneModeItemView .
In addition to being unsafe on the App Store, this method also requires your application to display a status bar. It is also fragile and can be broken every time Apple decides to change the structure of the status bar.
if let statusBarSubviews = ((UIApplication.shared.value(forKey: "statusBar") as? UIView)?.value(forKey: "foregroundView") as? UIView)?.subviews, let _ = statusBarSubviews.first(where: { $0.classForCoder == NSClassFromString("UIStatusBarAirplaneModeItemView") }) { print("Airplane mode is on.") }
source share