Wednesday, 4 November 2020

Kotlin Webview cant access dropzone

Im trying to access the the dropzone on a Kotlin webview but cant figure out how to access it.

this is how i declare the webview on onViewCreated

    wvInforme.addJavascriptInterface(WebAppInterface(this@InformeCreateFragment.context!!), "Android")

    wvInforme.loadUrl("https://admin.maxlink.ec/informe.php")
    wvInforme.setWebViewClient(WebViewClient())
    wvInforme.restoreState(savedInstanceState)
    wvInforme.settings.javaScriptEnabled = true
    wvInforme.settings.setBuiltInZoomControls(true)
    wvInforme.settings.setDisplayZoomControls(false)

    wvInforme.settings.allowFileAccess = true
    wvInforme.settings.allowFileAccessFromFileURLs = true

enter image description here



from Kotlin Webview cant access dropzone

No comments:

Post a Comment