Hi all.
i load a website on webview inside my app, but now this website blocked my app via PackageName.
i made some testes here on my app, if i remove .id from my package name the webview load ok.
but if i put .id on my package name the website block the url, show a blank page on my webview.
how can i set or change the package name on webview (loadurl) function?
i already found how to change the headers on webview.
https://www.b4x.com/android/forum/threads/modify-headers-in-webview.56807/
but how to change the package name on webview?
I tryed this (X-Requested-With)
but dont works, he is geting the package name and blocking too. (detecting .id)
the question is, how this website is geting my package name?
i made a lot of tests here in php, the only way i found to get the package name is with X-Requested-With, but this website is geting the package name with another code.
but how? no user agent and no X-Requested-With, what the another way to get the package name?
i found the same problem here
https://stackoverflow.com/questions/17832313/android-disable-x-requested-with-header-in-webview
thx all.
i load a website on webview inside my app, but now this website blocked my app via PackageName.
i made some testes here on my app, if i remove .id from my package name the webview load ok.
but if i put .id on my package name the website block the url, show a blank page on my webview.
how can i set or change the package name on webview (loadurl) function?
i already found how to change the headers on webview.
https://www.b4x.com/android/forum/threads/modify-headers-in-webview.56807/
but how to change the package name on webview?
I tryed this (X-Requested-With)
B4X:
Dim m As Map
m.Initialize
m.Put("User-Agent","Mozilla/5.0 (Linux; Android 7.0; SM-G935F Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/62.0.3202.84 Mobile Safari/537.36")
m.Put("X-Requested-With", "teste.teste.teste")
'
'
'
' 'CARREGA O SITE DA RECEITA
LoadUrlWithMap(webCaptcha, "http://www.website.com.br/", m)
but dont works, he is geting the package name and blocking too. (detecting .id)
the question is, how this website is geting my package name?
i made a lot of tests here in php, the only way i found to get the package name is with X-Requested-With, but this website is geting the package name with another code.
but how? no user agent and no X-Requested-With, what the another way to get the package name?
i found the same problem here
https://stackoverflow.com/questions/17832313/android-disable-x-requested-with-header-in-webview
thx all.
Last edited: