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

    Couple Newbie question

    Scheduled Pinned Locked Moved App Development
    8 Posts 3 Posters 785 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.
      • K Offline
        kmsgli
        last edited by

        So i have two questions that i am sure someone can answer easily
        I am having an issue building a webapp. HTML links dont seem to work, when I run clickable desktop and click a standard href link i get this;

        qml: user agent: Mozilla/5.0 (Linux; Ubuntu 16.04) AppleWebKit/537.36 Chrome/77.0.3865.129 Safari/537.36
        QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-hisham'
        Unable to detect a web browser to launch 'https://google.com/'
        
        

        The other issue is instead of using a webapp i tried to just build a basic shell script which works once in the terminal but if i make a .desktop file to launch from the app drawer it does nothing?

        Any help is appreciated.

        Thanks.

        LakotaubpL 1 Reply Last reply Reply Quote 0
        • LakotaubpL Offline
          Lakotaubp @kmsgli
          last edited by

          @kmsgli Have you tried using webber https://open-store.io/app/webber.timsueberkrueb it might do what you need.

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            kmsgli @Lakotaubp
            last edited by

            @lakotaubp
            I did find that and it works well however I am trying to learn to code my own app and for example I want a main page with two different web links attached to buttons one for my home camera interface and one for my shop camera rather then two apps i think it would be useful to build one app that has the two options in it unless webapps can not go to another site from inside the web app?

            LakotaubpL AppLeeA 2 Replies Last reply Reply Quote 0
            • LakotaubpL Offline
              Lakotaubp @kmsgli
              last edited by

              @kmsgli Someone should be able to help with that, but not me I'm afraid.Good luck

              1 Reply Last reply Reply Quote 0
              • AppLeeA Offline
                AppLee @kmsgli
                last edited by

                Hi @kmsgli

                Have you tried Clickable ?
                IIRC there is an HTML5 template you can use to start a new project.
                You can also check parameters for webapps in order to create a custom one (i.e. allowing browsing to outside links via Morph or adding several url to your webapp)

                K 1 Reply Last reply Reply Quote 0
                • K Offline
                  kmsgli @AppLee
                  last edited by

                  @applee I did use clickable and i like how easy it is to make and html app. However standard <a href=url a> code makes a link but nothing happens when u click it wether in the desktop emulation clickable or if you deploy the app on the phone. There must be a setting I am missing that allows morph to use links to other pages?

                  AppLeeA 1 Reply Last reply Reply Quote 0
                  • AppLeeA Offline
                    AppLee @kmsgli
                    last edited by

                    @kmsgli
                    Oh, I'm not at all a webdev but it might be some apparmor rights or some kind of confinement rules...
                    I hope someone will be able to help.

                    You can also check how some webapp+ are made like the one in the open store for facebook.
                    Those should have some interesting features mixing simple webapp and added custom code...

                    K 1 Reply Last reply Reply Quote 0
                    • K Offline
                      kmsgli @AppLee
                      last edited by kmsgli

                      My apparmor.json file needed "webview" listed under the policy_groups which according to the documentation and this solved my issue.

                      Thanks for pointing me in the right direction.

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