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

Android WebView: cannot enable localStorage

    XMLWordPrintable

Details

    • Android
    • dd303ae2e7 (qt/qtwebview/dev) 7948116620 (qt/qtwebview/6.2) 7948116620 (qt/tqtc-qtwebview/6.2) dd303ae2e7 (qt/tqtc-qtwebview/dev) 4eb7f8c31b (qt/tqtc-qtwebview/5.15) 877003e274 (qt/qtwebview/6.3) 877003e274 (qt/tqtc-qtwebview/6.3)

    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

            stromme Christian
            arabine Anthony Rabine
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes