How to debug webview issue when loading website url in android

My problem is in my android app. I load my clients site in android.webkit.Webview file . My entire application works fine in my application, but in one section the client wants to download a separate page of the website.

But I don't know, as soon as I load the website URL using the webview method

 mywebview.loadUrl(url);

My application crashes below - this is a log that you can check:

03-09 16: 26: 59.927 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (37)] "Typekit: the domain" autopearl.myshopify.com "isn't in the list of published domains for kit "jxm1pjf". ", source: https://use.typekit.net/jxm1pjf.js (37)
03-09 16: 27: 00.468 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'block-all-mixed-content'.
                                                              ", source: about: blank (0)
03-09 16: 27: 00.468 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'upgrade-insecure-requests'.
                                                              ", source: about: blank (0)
03-09 16: 27: 00.470 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'block-all-mixed-content'.
                                                              ", source: about: blank (0)
03-09 16: 27: 00.472 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'upgrade-insecure-requests'.
                                                              ", source: about: blank (0)
03-09 16: 27: 00.620 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (65)] "Uncaught TypeError: Cannot read property 'getItem' of null", source: https: // cdn .shopify.com / s / javascripts / shopify_stats.js? v = 6 (65)
03-09 16: 27: 00.921 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'block-all-mixed-content'.
                                                              ", source: about: blank (0)
03-09 16: 27: 00.921 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'upgrade-insecure-requests'.
                                                              ", source: about: blank (0)
03-09 16: 27: 02.654 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (9)] "Facebook Pixel Warning: Multiple different pixels were detected on this page", source: https: // connect.facebook.net/en_US/fbevents.js (9)
03-09 16: 27: 03.188 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'block-all-mixed-content'.
                                                              ", source: about: blank (0)
03-09 16: 27: 03.188 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'upgrade-insecure-requests'.
                                                              ", source: about: blank (0)
03-09 16: 27: 03.190 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'block-all-mixed-content'.
                                                              ", source: about: blank (0)
03-09 16: 27: 03.190 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'upgrade-insecure-requests'.
                                                              ", source: about: blank (0)
03-09 16: 27: 04.153 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'block-all-mixed-content'.
                                                              ", source: about: blank (0)
03-09 16: 27: 04.153 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'upgrade-insecure-requests'.
                                                              ", source: about: blank (0)
03-09 16: 27: 04.153 25581-25581 / com.niks.webviewapp I / chromium: [INFO: CONSOLE (0)] "Unrecognized Content-Security-Policy directive 'block-all-mixed-content'.
                                                              ", source: about: blank (0)

You can try loading the website in the android web browser.

URL: https://autopearl.myshopify.com/account/login . Chrome, . , , in android android.webkit.Webview

-, - . , ?

+4

Source: https://habr.com/ru/post/1671881/


All Articles