UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Manually refresh webapp?

    Scheduled Pinned Locked Moved App Development
    5 Posts 2 Posters 427 Views 2 Watching
    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.
      • poVoqP Offline
        poVoq
        last edited by

        Is there a way I can easily implement a manual refresh of a qtwebengine app?

        I think I have seen that as a pull down gesture or so?

        My ConverseJS qtwebengine app seems to sometimes get stuck after waking up from sleep and it would be nice to have a different way of making it work again then closing and reopening it.

        Fairphone 5 (waiting for port)

        CiberSheepC 1 Reply Last reply Reply Quote 0
        • CiberSheepC Offline
          CiberSheep @poVoq
          last edited by

          @povoq Maybe you want to start here:
          https://api-docs.ubports.com/sdk/apps/qml/Ubuntu.Components/PullToRefresh.html

          Another planet, another time, another universe!

          poVoqP 1 Reply Last reply Reply Quote 1
          • poVoqP Offline
            poVoq @CiberSheep
            last edited by

            @cibersheep Thanks.

            I guess this would require pretty complex logic to make work with the standard clickable webapp container?

            I guess I probably rather need to have some long-press modal similar to how it is done in Morph, but with a reload website button 🤔

            Fairphone 5 (waiting for port)

            CiberSheepC 1 Reply Last reply Reply Quote 0
            • CiberSheepC Offline
              CiberSheep @poVoq
              last edited by

              @povoq Oh. Yep. You could use a qml with a webview... but, yeah I don't know any way of controlling the web in a basic webapp

              Another planet, another time, another universe!

              1 Reply Last reply Reply Quote 0
              • poVoqP Offline
                poVoq
                last edited by poVoq

                So I made an feature request here: https://gitlab.com/clickable/clickable/-/issues/271

                But looking at the structure of the app, it seems to me like the long press modal that is available comes strait from the Morph browser.

                Maybe there could be some additional long press modal options available when Morph is used as an embedded browser to offset the lack of a address-bar?

                Fairphone 5 (waiting for port)

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