Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Android] Enable DOM Storage for WebView
Forum Updated to NodeBB v4.3 + New Features

[Android] Enable DOM Storage for WebView

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 801 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Augustas
    wrote on last edited by Augustas
    #1

    Hello,

    I have a very simple Qt Android application, which opens a website using WebView, which is created in qml.
    However, in the site I'm using javascript object localStorage and when I'm accessing the site using Qt Android WebView, I get an error that localStorage object is null (presumably, it's unsupported).

    One possible solution that I've found, is enabling DOM storage by calling java method setDomStorageEnabled. However, I don't know how to get WebView object, which was created in qml, in java.

    Any idea on how to enable DOM storage for Qts WebView? Or is there any other possible solution?
    Any advice would be very appreciated.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved