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

Let iOS/Android WebView to have loadHtml method and/or preprocess their HTTP fetch requests

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 5.5.0 Alpha
    • 5.4.0 Beta
    • WebView
    • None
    • iOS/tvOS/watchOS
    • adbc7e878fe68f5e1d05745ecb6a40ce7a4b31df

    Description

      I started playing with QtWebView on iOS trying to render Google Maps embed for start and.. these embeds are only allowed to function inside an iframe, so I need to load custom HTML into a WebView. So implementing loadHtml would be very useful (there seem to be corresponding methods on native web views on both Android and iOS).

      Alternatively I could intercept the WebView's request for HTTP content and e.g. register for "myapp://" urls and provide content myself. At the moment that would need quite a lot of interaction with the native side of iOS to my understanding. It would have been great if Qt provided way to preprocess HTTP requests/responses when they leave/enter WebView.

      Attachments

        Issue Links

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

          Activity

            People

              stromme Christian
              artem.marchenko Artem Marchenko
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes