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 SDK30+ WebView fails to show local files "ERR_ACCESS_DENIED"
Forum Updated to NodeBB v4.3 + New Features

Android SDK30+ WebView fails to show local files "ERR_ACCESS_DENIED"

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 667 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,
    When I build android app using Qt and android SDK 30 or 31, opening a local html file in WebView gives me this error:

    alt text

    As mentioned in ERR_ACCESS_DENIED in webview in Android - only with sdk 30, from SDK30 onwards WebView AllowFileAccess flag was changed to be false by default, instead of true. Changing it to true may solve the problem, but I can't find any way to do that on Qt.

    Is there a way to change qml WebView object AllowFileAccess flag value, or is another solution possible?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Augustas
      wrote on last edited by
      #2

      It seems there's a bug reported, regarding this issue.

      Even though we can build app targeting older SDKs, google play now required all apps to target SDK30 minimum, so that's not a solution.

      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