#QueriesSchemes: prefs
Sub OpenWifiSettings As Boolean
For Each s As String In Array("prefs:root=WIFI", "App-Prefs:root=WIFI")
If App.CanOpenURL(s) Then
App.OpenURL(s)
Return True
End If
Next
Return False
End Sub
Note that it doesn't work on iOS 11 (you will be taken to the home screen). Based on answers from StackOverflow it should work on older versions.
#QueriesSchemes: prefs
Sub OpenWifiSettings As Boolean
For Each s As String In Array("prefs:root=WIFI", "App-Prefs:root=WIFI")
If App.CanOpenURL(s) Then
App.OpenURL(s)
Return True
End If
Next
Return False
End Sub
Note that it doesn't work on iOS 11 (you will be taken to the home screen). Based on answers from StackOverflow it should work on older versions.
I added this code to my app including the "#QueriesSchemes: prefs" in Main Project Attributes. However "App." returns "Object expected". Is there a class module associated with this? I don't use classes or objects much so I don't understand.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.