0

For example:

user clicks a button navigate to settings page in the device connect the wifi required and back to application.

  • You write a "how to open settings and change the WiFi" view - opening the WiFi settings directly from within the App is considered a "private API" and will be rejected by Apple – MadProgrammer Dec 12 '19 at 03:38
  • Hi , Is it possible with – Dimble Jose Dec 12 '19 at 06:39
  • UIApplication.shared.openURL(NSURL(string:"App-prefs:root=WIFI")! as URL) – Dimble Jose Dec 12 '19 at 06:39
  • Yes, you "can" do it - but Apple considers it a "private api" and will reject your app if you try submitting it to the App store - [more reading](https://stackoverflow.com/questions/39782510/open-wifi-settings-by-prefsroot-wifi-failed-in-ios-10) – MadProgrammer Dec 12 '19 at 06:50
  • So apple currently does not allow to open settings directly from the App? – Dimble Jose Dec 12 '19 at 07:06

1 Answers1

0

Please try.

UIApplication.shared.openURL(NSURL(string:"App-prefs:root=WIFI")! as URL)
Himanshu Patel
  • 1,015
  • 8
  • 26