Android Question is it possible to open whatsapp web in a webview app?

coddy

Member
i want to open whatsapp web (https://web.whatsapp.com) in a webview app. not in any other browser apps just webview
this is my code. it can open any websites but not whatsapp web.

B4X:
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("layout1")
    webExt.addJavascriptInterface(WebView1,"B4A")
    webExt.addWebChromeClient(WebView1,"B4A")
    Button1.Text = "OPEN"
End Sub

Private Sub Button1_Click
    WebView1.LoadUrl(EditText1.Text)
    userAgent = "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0"
    WebViewSettings1.setUserAgentString(WebView1, userAgent)
End Sub

after loading the page it says your browser is not supported
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…