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

    Opening saved files from webapp

    Scheduled Pinned Locked Moved General
    15 Posts 4 Posters 779 Views 1 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.
      • MrT10001M Offline
        MrT10001 @mihael
        last edited by MrT10001

        @mihael Yep, looks like permissions. If I open the photo in the file manager and then choose Gallery as the app, it opens in gallery and stays there (it has to be selected as photo and not album). You would need to set the permissions for the webapp to use gallery as the viewer.

        Edit, just tried using webber to create a Whatsapp webapp for me and it won't allow saying my browser is not up to date!

        Xiaomi Redmi Note 7.... And more...
        I have too many devices...

        mihaelM 1 Reply Last reply Reply Quote 0
        • mihaelM Offline
          mihael @MrT10001
          last edited by

          @MrT10001 For whatsapp webapp please check the solution here: https://forums.ubports.com/post/77721

          Regarding permissions, how do I setup permissions for a webapp?

          MrT10001M 1 Reply Last reply Reply Quote 0
          • MrT10001M Offline
            MrT10001 @mihael
            last edited by

            @mihael When I set up the Webapp I noticed a checkbox to link (dammit, I should have screenshotted) which I am trying to reproduce, but failing. When I have more time I am going to sit down and work this out (unless someone with more knowledge sorts it out).

            Xiaomi Redmi Note 7.... And more...
            I have too many devices...

            1 Reply Last reply Reply Quote 0
            • K Online
              kugiigi
              last edited by

              It is probably a permission issue. There are checkboxes in Webber. I believe one of them is export files/contents.

              1 Reply Last reply Reply Quote 0
              • MrT10001M Offline
                MrT10001
                last edited by MrT10001

                screenshot20240714_113456946.png

                This is my setup. I would tick the two boxes I have circled in red.

                Edit:

                Successfully setup Whatsapp on my device (thanks for the useragent tip), I still cannot open images in Gallery, even though I have selected it.

                Xiaomi Redmi Note 7.... And more...
                I have too many devices...

                mihaelM 1 Reply Last reply Reply Quote 0
                • mihaelM Offline
                  mihael @MrT10001
                  last edited by

                  @MrT10001 It looks like you managed to reproduce the issue that I'm talking about...

                  1 Reply Last reply Reply Quote 0
                  • mihaelM Offline
                    mihael
                    last edited by

                    And it's the same with any other type of documents, like pdfs, etc - no downloads can be opened directly from the webapp's downloads list.

                    1 Reply Last reply Reply Quote 0
                    • mihaelM Offline
                      mihael
                      last edited by

                      I made a webapp for another website and there is no problem to open downloaded pictures directly in Gallery from that webapp... So it only happens to web.whatsapp.com... What could the problem be then?

                      MrT10001M 1 Reply Last reply Reply Quote 0
                      • * Offline
                        *george9843 Banned
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • MrT10001M Offline
                          MrT10001 @mihael
                          last edited by

                          @mihael At a guess it will be security related on the WhatsApp side.

                          Xiaomi Redmi Note 7.... And more...
                          I have too many devices...

                          mihaelM 1 Reply Last reply Reply Quote 0
                          • mihaelM Offline
                            mihael @MrT10001
                            last edited by

                            @MrT10001 And what could it be? - so that I could work around that... I'm rather sure it's a bug because once the file is in the download list, the website should not be able to interfere with the webapp... unless it has anything to do with the name of the file - which name is indeed related to whatsapp.

                            The thing is that the logs don't show any helpful information in this matter...

                            MrT10001M 1 Reply Last reply Reply Quote 0
                            • MrT10001M Offline
                              MrT10001 @mihael
                              last edited by MrT10001

                              @mihael Logic would point to the Whatsapp side if another webapp was able to open images directly in gallery.

                              Xiaomi Redmi Note 7.... And more...
                              I have too many devices...

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