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

Need for better permission policy for HTML5 app

Scheduled Pinned Locked Moved App Development
html5
7 Posts 5 Posters 1.9k Views 4 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.
    • E Offline
      Emanuele Sorce
      last edited by NeoTheThird 23 May 2017, 09:35

      There are many good HTML5 apps for ubuntu touch. Examples I use daily are: Turtl UT and LoquiIM, but I am sure there are more. But they have a great limitation in their functionalities: they can't export data to the internal storage. For example in Loqui when someone send me a media I can't save it in the gallery, same for Turtl or any HTML5 app. A good solution is to make a new permission option, like camera, microphone or position access, capable of enable content-hub export access like normal apps.

      So Long, and Thanks for All the Fish

      M 1 Reply Last reply 23 May 2017, 12:30 Reply Quote 0
      • M Offline
        mikhael @Emanuele Sorce
        last edited by 23 May 2017, 12:30

        @Emanuele-Sorce, I believe, Cordova might be what you are looking for. The framework has APIs for HTML5 apps to access internal storage, camera and geolocation. There are number of other useful plugins available for Ubuntu in their repo.

        Content-hub is also available for HTML5 apps.

        1 Reply Last reply Reply Quote 0
        • E Offline
          Emanuele Sorce
          last edited by Emanuele Sorce 23 May 2017, 13:16

          @mikhael
          Cordova uses very old components, and as far as I read who tried to use Cordova to create HTML5 app found problems, and in most cases headed back to standard HTML5 template app. HTML5 apps can use content-hub to import files, but not to export them.

          So Long, and Thanks for All the Fish

          1 Reply Last reply Reply Quote 0
          • M Offline
            mikhael
            last edited by 23 May 2017, 14:52

            @Emanuele-Sorce, I agree, most of problems, I'm facing with in Cordova while updating Seabass, are also due to outdated components and unsupported build tools.

            But, I think, except those issues, Cordova has some nice features, such as cross-platform availability (which is a good selling point for going with HTML5 instead of native apps, in my opinion) and a good plugin-based architecture with simple command line tool for creating/managing apps (no need to study platform-specific SDK's for developers). When year ago build tools were just working it was really easy to create Cordova-based apps for Ubuntu.

            Maybe what we need is to just keep Ubuntu's components for Cordova updated?

            1 Reply Last reply Reply Quote 0
            • S Offline
              sverzegnassi
              last edited by 23 May 2017, 14:57

              Not sure, since I never studied how web apps got integrated in the Ubuntu Touch platform, but ContentHub should be available for exporting files through the Download Manager.

              Now, I don't know how this happens with the official web container, but I guess it should be easily fixable by writing a custom container using QML (see e.g. ogra's web container).

              In a long term, we might want to improve the whole webapp development experience, e.g. providing some more powerful tool

              1 Reply Last reply Reply Quote 1
              • N Offline
                nfsprodriver
                last edited by nfsprodriver 23 May 2017, 15:13

                Cordova works worse with files from my point of experience. It's also a pitty, if you'd need such a rewrite of the html5 app. So there's a need to procreed oxide-qt or an implentation of a routine which makes a barrierfree handle with files possible.

                1 Reply Last reply Reply Quote 1
                • N Offline
                  NeoTheThird
                  last edited by 24 May 2017, 09:12

                  Yeah, this needs definitely some improvement. App development (not only for webapps) is held back by not recieving enough attention for too long making it way to difficult to deliver great applications at the moment. My respect to everyone who is developing anyways, there are some great apps on Ubuntu Touch!

                  If you have wishes or ideas how to improve the problems, be sure to speak up.

                  1 Reply Last reply Reply Quote 1
                  2 out of 7
                  • First post
                    2/7
                    Last post