I am using the following code in my iOS app to open the Wi-Fi settings screen:
However, when this is executed, it opens the general Settings screen instead of taking the user directly to the Wi-Fi settings screen.
Could anyone clarify why this is happening or suggest a way to fix it so that the app opens the Wi-Fi screen directly?
Thank you!
Note: Setting URLs
B4X:
Sub OpenWifiSettings As Boolean
For Each s As String In Array("prefs:root=WIFI", "App-Prefs:root=WIFI")
If Main.App.CanOpenURL(s) Then
Main.App.OpenURL(s)
Return True
End If
Next
Return False
End Sub
However, when this is executed, it opens the general Settings screen instead of taking the user directly to the Wi-Fi settings screen.
Could anyone clarify why this is happening or suggest a way to fix it so that the app opens the Wi-Fi screen directly?
Thank you!
Note: Setting URLs
Last edited: