• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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.
    • P Offline
      poVoq
      last edited by 13 Jun 2021, 19:36

      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)

      C 1 Reply Last reply 13 Jun 2021, 20:41 Reply Quote 0
      • C Offline
        CiberSheep @poVoq
        last edited by 13 Jun 2021, 20:41

        @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!

        P 1 Reply Last reply 13 Jun 2021, 20:54 Reply Quote 1
        • P Offline
          poVoq @CiberSheep
          last edited by 13 Jun 2021, 20:54

          @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)

          C 1 Reply Last reply 13 Jun 2021, 21:30 Reply Quote 0
          • C Offline
            CiberSheep @poVoq
            last edited by 13 Jun 2021, 21:30

            @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
            • P Offline
              poVoq
              last edited by poVoq 13 Jun 2021, 21:43

              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
              5 out of 5
              • First post
                5/5
                Last post