Reputation: 21805
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
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
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