Android Webview Discourse Invite Link


(Dai Dao) #1

Hi,

I generate an invite link using the Discourse API given the user’s email. When I get the link I try to load it with the WebView but it just appears blank. This is strange I’m not sure why the invite link wouldn’t load but any other websites would.

Here’s the code:

webview.loadUrl(link)
webview.settings.javaScriptEnabled = true
webview.webViewClient = WebViewClient()
webview.webChromeClient = WebChromeClient()

Thanks for any assistance. Cheers!