why is the QR code not appearing of telegram webview on android app

Viewed 4

Here is the image how the problem looks

below is the code

This is the webview settings i am using. The Telegram qr code isnt appearing on this webveiw i     
am using. The settings i have posted below. Can anyone tell me how to correct it or any other     
webview setttings.

   

webView=findViewById(R.id.webView);

        webView.setVisibility(View.INVISIBLE);

    webView.loadUrl("https://web.telegram.org/z/");
    webView.setWebViewClient(new WebViewClient() {
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
            return true;
        }
    });
   //this is the webview settings i am using
    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setUseWideViewPort(true);
    webView.setWebChromeClient(new WebChromeClient() {
    });
    //QR code isnt loading so please help me 
    // problem i have posted look above image attached to link
    webView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; Win64; x64; rv:46.0) 
    Gecko/20100101 Firefox/68.0");

// This is the webview settings i am using. The Telegram qr code isnt appearing on this webveiw i
am using. The settings i have posted below. Can anyone tell me how to correct it or any other
webview setttings. webView.getSettings().setGeolocationEnabled(true); webView.getSettings().setDomStorageEnabled(true); webView.getSettings().setDatabaseEnabled(true); webView.getSettings().setSupportMultipleWindows(true); // webView.getSettings().setAppCacheEnabled(true); // webView.getSettings().setNeedInitialFocus(true); webView.getSettings().setLoadWithOverviewMode(true); webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); //webView.getSettings().setBlockNetworkLoads(true); webView.getSettings().setBlockNetworkImage(true); webView.getSettings().setBuiltInZoomControls(true); }

   //please help 


This is the webview settings i am using. The Telegram qr code isnt appearing on this webveiw i     
am using. The settings i have posted Above. Can anyone tell me how to correct it or any other     
webview setttings.
0 Answers
Related