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

WebChannel + WebSocket + WebView in iOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.5
    • WebChannel, WebSockets, WebView
    • None
    • iOS/tvOS/watchOS

    Description

      Hi , 

           would like to report on this , i add webchannel + websocket on my mobile app 

      it works on android but on ios it seems that webview for ios is blocking the connection to its localhost , 

      i followed the instructions here https://decovar.dev/blog/2018/07/14/html-from-qml-over-webchannel-websockets/ 

      and check all platform , linux , mac , windows , android and got positive result but only ios is negative . 

      i already added this nstransportsecurity 

              <key>NSAppTransportSecurity</key>
              <dict>
                  <key>NSAllowsArbitraryLoads</key>
                  <true/>
                  <key>NSAllowsLocalNetworking</key>
                  <true/>
                  <key>NSAllowsArbitraryLoadsInWebContent</key>
                  <true/>
                  <key>NSExceptionDomains</key>
                  <dict>
                    <key>127.0.0.1</key>
                    <dict>
                      <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
                      <true/>
                    </dict>
                    <key>localhost</key>
                    <dict>
                      <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
                      <true/>
                    </dict>
                  </dict>
              </dict>

      but still not working , am i missing something ? thank you 

       

       

       

       

      Attachments

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

        Activity

          People

            msarehn Arno Rehn
            jhayar Jhay Tolentino
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes