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?