Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Solved Qt5.8 QML WebView on iOS never fires signals

    Mobile and Embedded
    qml webview ios bug
    3
    4
    1134
    Loading More Posts
    • 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.
    • E
      eLim last edited by eLim

      Hey,
      As part of an app I'm building for work, I'm using the QML WebView. Currently compiling with Qt 5.8.

      Every time the URL is changed in the WebView I monitor it and react accordingly. On Android, MacOS and Windows everything works fine. But on iOS, onLoadingChanged and onUrlChanged are never fired at all, even though the pages are clearly changing. I've called QtWebView::initialize() in my main function, so that shouldn't be the cause.

      Is this a known bug? And if so, is there a workaround for it?

      jsulm 1 Reply Last reply Reply Quote 0
      • E
        eLim @jsulm last edited by

        @jsulm We determined that the issue was javascript-related. The page was using javascript to perform the redirect, and iOS didn't like that.

        Thanks for the help, though!

        1 Reply Last reply Reply Quote 0
        • jsulm
          jsulm Lifetime Qt Champion @eLim last edited by

          @eLim To check whether it is a known bug you should check https://bugreports.qt.io/secure/Dashboard.jspa
          How do you connect to the signals? Can you show relevant code?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          E 1 Reply Last reply Reply Quote 0
          • E
            eLim @jsulm last edited by

            @jsulm We determined that the issue was javascript-related. The page was using javascript to perform the redirect, and iOS didn't like that.

            Thanks for the help, though!

            1 Reply Last reply Reply Quote 0
            • S
              ShubhamB last edited by

              Hi @eLim

              I am also facing the same issue in my Qt iOS application. Could you please help me to understand what part of javascript, iOS is restricting as I am using Angular to develop the web application.
              Could you please provide more information what you did to resolve this issue.

              Thanks in advance.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post