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

HTML5 App - API Access

Scheduled Pinned Locked Moved App Development
6 Posts 5 Posters 544 Views 2 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.
    • M Offline
      MajesticFudgie
      last edited by 1 Feb 2022, 10:43

      Re: How to use the RuntimeApi in HTML5 Apps?

      I'm having a similar issue,
      How would I go about accessing the APIs to ready information such as the battery status?

      I've dissected the cordova support and it appears to use navigator messages to speak to qt, I assume this is kind of specific to cordova?

      Whats the recommended approach?

      M C 2 Replies Last reply 7 Feb 2022, 11:16 Reply Quote 0
      • M Offline
        MajesticFudgie @MajesticFudgie
        last edited by 7 Feb 2022, 11:16

        Has anyone got any ideas on how to do this?

        A 1 Reply Last reply 7 Feb 2022, 11:24 Reply Quote 0
        • A Offline
          AppLee @MajesticFudgie
          last edited by 7 Feb 2022, 11:24

          @majesticfudgie
          Nope, sorry.

          Have you tried on Telegram in the app development group?
          It might be quicker to have an answer there...

          1 Reply Last reply Reply Quote 0
          • C Offline
            CiberSheep @MajesticFudgie
            last edited by 7 Feb 2022, 13:05

            @majesticfudgie Hello,
            Cordova's code is quite obsolete now
            I have never been able to test the html5 API but you may need apparmor permisions (?) to access the app cache folders.

            You could use a webview/webengine in a qml and get better access (old code but it could be useful): https://gitlab.com/cibersheep/quixe-qml/

            Another planet, another time, another universe!

            1 Reply Last reply Reply Quote 1
            • L Offline
              L-00819
              last edited by Lakotaubp 17 Feb 2022, 07:21

              Can I share apps on the [AndroidHD]

              L 1 Reply Last reply 17 Feb 2022, 07:29 Reply Quote -1
              • L Offline
                Lakotaubp @L-00819
                last edited by 17 Feb 2022, 07:29

                @ritomkai I have edited out the link as it is reported spam, and no iirc UT apps will not run on Android

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