Issue
I have this code.
@SuppressLint("SetJavaScriptEnabled")
@Composable
fun WebPageScreen(urlToRender: String) {
AndroidView(factory = {
WebView(it).apply {
layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
)
webViewClient = WebViewClient()
loadUrl("https:....") //Url to be loaded
}
}, update = {
it.loadUrl("https:...") //Url to be loaded
})
}
Im trying to loading this url
When i load this page it is redirecting but showing error what is the problem and how to solve this?
Solution
The webview is not working for particular url because the authorizer of that website have secured it in such a way. To Access that url in webview we need to get client certificate from the authority.
Answered By - SARRAN N
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.