iOS Question webview auth problem

mrossen

Active Member
Licensed User
Longtime User
I am running this code. But UserAndPasswordRequired event is never raised. What am I missing

B4X:
Sub WebViewLeaflet_UserAndPasswordRequired (Host As String, Realm As String) As String()

    Log("Password")
    Return Array As String("user", "password")
   
End Sub

Sub getInstallPDF(s As String)
   
    WebViewLeaflet.LoadUrl("http://www.lpastech.dk/admin")
    NavControl.ShowPage(leaflet)   

End Sub

Mogens
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is no such event:
SS-2015-04-08_08.52.10.png


You can however put the user name and password inside the url: http://stackoverflow.com/questions/...tion-credentials-passed-in-url-and-encryption
 
Upvote 0
Top