My App will need to connect to the device's wifi, if the user's wifi connection is not available, my app will guide user to phone's Wi-Fi setting page.
In previous version, I can open phone's Wi-Fi setting with this line of code.
However, with iOS 10, with the following line of code, it doesn't work
UIApplication.shared().open(URL(string: "prefs:root=WIFI")!, options: [:], completionHandler: nil)
I've been trying to get the settngs to launch too but unfortunatly it looks like Apple have disabled it. This feature was never officially supported and many apps got rejected (though also many got through) if they used it. Now it looks like its been totally eliminated.
Finally, what you did to fix this?