Is it possible to make a browser on my phone automatically open the WiFi app and have it already have the password entered for the specified WiFi network? if so, how?
Asked
Active
Viewed 62 times
1 Answers
0
nUnfortunately this is not possible on the iOS platform. However you can open the Settings if you like:
guard let url = URL(string:UIApplicationOpenSettingsURLString) else {
return
}
if UIApplication.shared.canOpenURL(url) {
_ = UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
For Android (not an Androidler) this might help: https://stackoverflow.com/a/18390250/1195661
palme
- 2,372
- 2
- 21
- 36
-
Well, I'm pretty new to coding and I don't really know what to do with the snippet in the linked article... – Stefan May 05 '18 at 00:07
-
And also, let's start off easy and do android first, iOS can come later. – Stefan May 05 '18 at 00:10
-
With this attitude you are coming not so far in this board ;) I gave you two code examples which will help you routing to the settings app of both systems (what you asked for). If you want further details you have to tell me what you tried before and what did not work. There should always be at least a bit self initiative before asking a question here. – palme May 05 '18 at 06:23
-
uhh, I haven't tried anything really, because I don't know what I would have to do since I'm so new. – Stefan May 05 '18 at 08:43
-
For android I can recommend you reading about activities and how to start them: https://developer.android.com/reference/android/app/Activity The activity you have to start seems to be this one: `startActivity(new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS));` – palme May 05 '18 at 18:24