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

    Why some xenial webapps don't work

    Scheduled Pinned Locked Moved App Development
    13 Posts 5 Posters 1.6k 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.
      • advocatuxA Offline
        advocatux @dtarrant
        last edited by

        @dtarrant if the videos play fine in desktop mode, you could try to play with the user agent string in webapp-creator and avoid any reference to mobile.

        D 1 Reply Last reply Reply Quote 1
        • D Offline
          dtarrant @advocatux
          last edited by

          @advocatux Thanks for your suggestion. I assume morph browser should be left in normal mode except when running my BBC iplayer app. So my question is how is it possible to control the display mode of morph browser from webapp-creator/BBC iplayer? You refer to user agent, but I don't remember seeing anything about that whilst running webapp-creator. Did I miss something?

          advocatuxA 1 Reply Last reply Reply Quote 0
          • advocatuxA Offline
            advocatux @dtarrant
            last edited by

            @dtarrant I remember that option was available when using Ogra at least but I don't know if it's the same for the default system in webapp-creator.

            Have you seen this https://github.com/Jujuyeh/webapp-creator/wiki/libwebappcreator-(English) already?

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              dtarrant @advocatux
              last edited by

              @advocatux I'm not using ogra at present. I didn't need that for my BBC News webapp, so I decided to stick with that approach for BBC iplayer.
              I've had a quick look at the material on user agent strings at the link you provided. It seems complicated and will require careful study.
              In the meantime I discovered that I hadn't upgraded to OTA 5 and was still running a recent rc. So I upgraded to OTA 5 and decided to try webapp-creator again.
              This time it ran and informed me that my click package had been successfully created and was at
              ~/.cache/webapp-creator.......etc, but it wasn't there. I tried again and the result was the same.
              It seems that webapp-creator may have been broken by the upgrade. I wonder if anyone else has had the same problem? I tried re- installing webapp-creator, but the problem remained.

              1 Reply Last reply Reply Quote 0
              • K Offline
                ksalver @dtarrant
                last edited by

                @dtarrant
                in the myapp.apparmor you must insert the "video" and "audio" permissions (see the documentation).
                the file myapp.manifest must copied to manifest.json .
                so i tested this on my ubuntu-phone in terminal whith " click build ." ; then i have the myapp.click which can be installed by ut.tweak-tool or by using "pkcon --install ..." . After this you can test your application before uploading to the store

                D 1 Reply Last reply Reply Quote 1
                • KrilleK Offline
                  Krille
                  last edited by

                  Hey, I also have big problems with uMastonauts. The webview crashes every time I start it. Switching to import Morph.Web 0.1 does'nt work. The app is useless until I know how to fix this but I have no idea. 😞

                  Is there a working example webapp with the morph browser engine where we can look how to do this?

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    dtarrant @ksalver
                    last edited by

                    @ksalver Are you talking about using clickable? When I use webapp-creator things are simpler than you imply. When I created my BBC News webapp, I just filled in a few things in a template. I didn't encounter json or apparmor. I then installed using ubuntu tweak tool and everything worked fine including the video as long as I had chosen simple webapp and selected the multimedia option. I only used the terminal on a previous occasion when I tried out clickable. That worked, but seemed like overkill compared to webapp-creator for a simple webapp. It was more like a tool for power users.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dtarrant @Krille
                      last edited by

                      @krille I've built 3 simple webapps using webapp-creator that work fine, including video, with morph browser. These are not in openstore. I made them for my personal use, but I could telegram you the click packages if that would help.

                      KrilleK 1 Reply Last reply Reply Quote 0
                      • KrilleK Offline
                        Krille @dtarrant
                        last edited by

                        @dtarrant Okay but a source code example would be helpful where someone implements a webview based on Morph.

                        D 1 Reply Last reply Reply Quote 1
                        • D Offline
                          dtarrant @Krille
                          last edited by

                          @krille I understand from openstore that you've already published several apps and it's clear that you've far more experience than me. Realistically, I don't feel qualified to help as I'm just a beginner.
                          My understanding is that webapp-creator invokes morph browser automatically. The template doesn't provide an option for choosing the browser.

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