Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

454
Views
Webview da error al salir de mi aplicación js error

Hola, stackoverflow, estoy redirigiendo al usuario a Webview desde mi aplicación, la URL de redirección está alojada en mi servidor, que funciona bien en mi dispositivo, pero en mis pruebas no funciona para otros dispositivos. El error que encontré de logcat es:

 I/chromium: [INFO:CONSOLE(478)] "Uncaught TypeError: Cannot set property 'innerHTML' of null", source: https://secure-acs2ui-b1-indmum-mumrdc.wibmo.com/v1/acs/legacy/live/8547/MP/uid=fd076e4c-afc4-44b2-99f5-97a0bC3lD7qB (478)

Mi función de vista web es:

 private fun configureWebview() { // Get the web view settings instance val settings = binding.webView.settings // Enable java script in web view settings.javaScriptEnabled = true // Enable and setup web view cache settings.setAppCacheEnabled(false) // Enable zooming in web view // settings.setSupportZoom(true) // settings.builtInZoomControls = true // settings.displayZoomControls = true // Zoom web view text settings.textZoom = 125 // Enable disable images in web view settings.blockNetworkImage = false // Whether the WebView should load image resources settings.loadsImagesAutomatically = true // More web view settings if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { settings.safeBrowsingEnabled = true // api 26 } //settings.pluginState = WebSettings.PluginState.ON settings.useWideViewPort = true settings.loadWithOverviewMode = true settings.javaScriptCanOpenWindowsAutomatically = true settings.mediaPlaybackRequiresUserGesture = false // More optional settings, you can enable it by yourself settings.setAppCacheEnabled(false) settings.domStorageEnabled = true settings.defaultTextEncodingName = "utf-8" settings.setSupportMultipleWindows(true) settings.loadWithOverviewMode = true settings.allowContentAccess = false settings.allowUniversalAccessFromFileURLs = false settings.allowFileAccess = false // WebView settings binding.webView.fitsSystemWindows = true /* if SDK version is greater of 19 then activate hardware acceleration otherwise activate software acceleration */ binding.webView.setLayerType(View.LAYER_TYPE_HARDWARE, null) }

Por favor ayúdenme a resolver este error gracias de antemano

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!