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 830 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 (Not yet installed UT on it though)

      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 (Not yet installed UT on it though)

          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 (Not yet installed UT on it though)

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post