• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 786 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 12 Jul 2021, 03:00

      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.

      L 1 Reply Last reply 12 Jul 2021, 04:06 Reply Quote 0
      • L Offline
        Lakotaubp @kmsgli
        last edited by 12 Jul 2021, 04:06

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

        K 1 Reply Last reply 12 Jul 2021, 23:00 Reply Quote 0
        • K Offline
          kmsgli @Lakotaubp
          last edited by 12 Jul 2021, 23:00

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

          L A 2 Replies Last reply 13 Jul 2021, 04:39 Reply Quote 0
          • L Offline
            Lakotaubp @kmsgli
            last edited by 13 Jul 2021, 04:39

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

            1 Reply Last reply Reply Quote 0
            • A Offline
              AppLee @kmsgli
              last edited by 13 Jul 2021, 08:11

              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 13 Jul 2021, 21:49 Reply Quote 0
              • K Offline
                kmsgli @AppLee
                last edited by 13 Jul 2021, 21:49

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

                A 1 Reply Last reply 14 Jul 2021, 10:11 Reply Quote 0
                • A Offline
                  AppLee @kmsgli
                  last edited by 14 Jul 2021, 10:11

                  @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 15 Jul 2021, 00:50 Reply Quote 0
                  • K Offline
                    kmsgli @AppLee
                    last edited by kmsgli 15 Jul 2021, 00:50

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