Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.12.3
-
Qt Android all versions
-
-
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??).