Enable Android System Webview Debug

Welcome! Forums Unity Plugins In-App Web Browser Enable Android System Webview Debug

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #417
    mohanki
    Participant

    Is it possible to enable debug of webview to see errors from website.

    https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
    WebView.setWebContentsDebuggingEnabled(true);
    }

    I need it badly to see why my webpage is having trouble loadin.

    #426
    PiotrPiotr
    Keymaster

    Sounds good. Will add it as an option.

    #429
    mohanki
    Participant

    Hi Piotr,

    Is there a way I can add it the current asset I downloaded?

    #430
    PiotrPiotr
    Keymaster

    No, but I’ve emailed you with a unity package with that feature.
    In order to enable it you should set webContentsDebuggingEnabled in DisplayOptions passed to OpenURL method.
    I couldn’t test it out because of some Android SDK weirdness but hopefully it works 😉

    #431
    mohanki
    Participant

    Thanks m8.
    Ur. Awesome B)
    Will test it out.

    #432
    Cyprien
    Participant

    Hi Piotr,

    I would also need to be able to remotely debug the pages I access through the webview, would you be able to send me the mentionned package ?

    Thank you very much 🙂

    #434
    PiotrPiotr
    Keymaster

    Sure!

    #435
    Cyprien
    Participant

    Worked like a charm, thanks 🙂

    #468
    PiotrPiotr
    Keymaster

    Great! Will release an update.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.