Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75723

Android WebView: cannot enable localStorage

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: WebView
    • Labels:
      None
    • Environment:

      Qt Android all versions

    • Platform/s:
      Android

      Description

      The default implementation of WebView on Android does not enable the localStorage. Thus, it is not possible to start web app using it. 

      File: QtAndroidWebViewController.java

      Suggestions:

       1. (complex) Add a proper generic interface to enable various browser settings in the QML WebView component

      2. (simple) Add the following lines in the constructor:

       

      webSettings.setDatabaseEnabled(true);

      webSettings.setDomStorageEnabled(true);

       

      These lines can be surrounded by a check if the app permission allows it (write to external storage??).

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            stromme Christian
            Reporter:
            arabine Anthony Rabine
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes