Shubhank
Shubhank

Reputation: 21805

Giving option to the user to activate airplane mode

How to show an alert that will take user (if clicked Yes) to the settings app to change airplane mode settings.

From what i have researched one cannot activate/Deactivate airplane mode programmatically but is there a way to show an alert for user to activate airplane mode?(like the ones that show if there are UIDeviceCapabilities keys in info.plist)

Upvotes: 2

Views: 462

Answers (3)

TeSter
TeSter

Reputation: 119

There is no way you can use selenium network connection API on iOS. Check this URL: https://appium.io/docs/en/writing-running-appium/other/network-connection/

Upvotes: 0

Shubhank
Shubhank

Reputation: 21805

there is no way to show any alert for AirPlane mode..

Upvotes: 1

Akshay
Akshay

Reputation: 5765

There is no apple approved way of launching the settings app at your will. However, if you include the key RequiresPersistentWifi in your info.plist and the network connection is unavailable, iOS will itself display a dialog for you which contains a button to launch Settings.

Upvotes: 0

Related Questions