Android Question WebView don't show "SPID" login form

sirjo66

Well-Known Member
Licensed User
Longtime User
Hello :)
I'm try to show a web page with WebView but it don't works :(
Here is the simplified code for to see the problem
(remember to import Phone library)
B4X:
Sub Activity_Create(FirstTime As Boolean)
    Dim pi As PhoneIntents
    StartActivity(pi.OpenBrowser("https://www.passaportonline.poliziadistato.it/LogInAction.do?codop=loginCittadino"))
    Activity.Finish
End Sub
Please run this code, you will see that a page appeare. Now click on "Entra con SPID" blue button, and another page will appeare, with a list of provider.
Click on "InfoCert ID" button and you will see next page, with a login form.
Ok, it works !!!!

Now please change code in:
B4X:
Sub Activity_Create(FirstTime As Boolean)
    Dim wv As WebView
    wv.Initialize("wv")
    Activity.AddView(wv, 0, 0, 100%x, 100%y)
    wv.JavaScriptEnabled = True
    wv.ZoomEnabled = False
    wv.LoadUrl("https://www.passaportonline.poliziadistato.it/LogInAction.do?codop=loginCittadino")
End Sub

Try to do the same clicks but the login form don't appeare.

Anyone can help me ???
Thanks
 

drgottjr

Well-Known Member
Licensed User
Longtime User
what is the problem?
 

Attachments

  • 1.png
    1.png
    21.1 KB · Views: 38
  • 2.png
    2.png
    22.3 KB · Views: 36
  • 3.png
    3.png
    25.8 KB · Views: 39
  • 4.png
    4.png
    16.8 KB · Views: 39
  • 5.png
    5.png
    20.9 KB · Views: 41
Upvote 0

sirjo66

Well-Known Member
Licensed User
Longtime User
Many many thanks for the answer.
From your images I see that you don't have click on "InfoCert ID" but on "TIM id" and "Poste ID".

"Poste ID" works, as you see you can insert username and password.

"TIM id" don't works, as you see in the page don't appeare username and password edittextbox.
In attachment I show to you how it appeare in browser

Please try with "InfoCert ID" (this is what I need) and you will see the same problem, I can't insert username and password.

But if you try with pi.OpenBrowser it works all

Bye bye
Sergio
 

Attachments

  • tim.jpg
    tim.jpg
    136.3 KB · Views: 20
Upvote 0

Xfood

Expert
Licensed User
maybe so you solve
i used ultimatewebview

( italiano)
forse cosi risolvi
ho utilizzato ultimatewebview
B4X:
Sub btnGo_Click
    'Dim Headerrs As Map
    'Headerrs.Initialize
    'Headerrs.Put("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36")
    'UltimateWebView1.LoadUrl2(txtUrl.Text,Headerrs)
   
    UltimateWebView1.LoadUrl("https://www.passaportonline.poliziadistato.it/LogInAction.do?codop=loginCittadino")
    'UltimateWebView1.LoadUrl(txtUrl.Text)
End Sub

1651229038637.png
 
Upvote 0

sirjo66

Well-Known Member
Licensed User
Longtime User
It works !!!!!
Many many thanks

(italiano)
grazie mille, ci vediamo di là
 
Upvote 0
Top