Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Couple Newbie question

    App Development
    3
    8
    501
    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
      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.

      Lakotaubp 1 Reply Last reply Reply Quote 0
      • Lakotaubp
        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
          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?

          Lakotaubp AppLee 2 Replies Last reply Reply Quote 0
          • Lakotaubp
            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
            • AppLee
              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
                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?

                AppLee 1 Reply Last reply Reply Quote 0
                • AppLee
                  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
                    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