iOS Question Issue with Opening Specific Settings Screen on iOS (Settings > Wi-Fi)

ykucuk

Well-Known Member
Licensed User
Longtime User
I am using the following code in my iOS app to open the Wi-Fi settings screen:

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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…