• Handle downloads with a WebView

    Solved
    4
    0 Votes
    4 Posts
    690 Views
    Schlicki2808S
    So, I finally found a solution. Okay, in my case, the constellation is a bit different: I have a qml app with a WebView. I ended up to trigger the download from HTML/Javascript side and to process the download on qml side. I failed to use the SingleDownload component because it can not handle data-URLs. So I implemented my own solution: // ... WebContext { id: mainContext onDownloadRequested: { var fileUrl = "/home/phablet/.local/share/schulferien.daniel/Downloads/" + download.downloadFileName; var request = new XMLHttpRequest(); request.open("PUT", fileUrl, false); request.send(decodeURIComponent(download.url.toString().replace("data:text/plain;,", ""))); PopupUtils.open(downloadedMessage); } } WebView { id: mainWebView context: mainContext // ... The "fileUrl" has to point to the application path + Downloads, otherwise a "device not open" error will occur.
  • ScrollView with ListView does not work

    1
    2
    0 Votes
    1 Posts
    166 Views
    No one has replied
  • Creating Apps, ADB: No devices attached

    17
    0 Votes
    17 Posts
    2k Views
    ?
    I checked with kde no problem. mtp-tools is not installed with Gnome and Kde. I just installed and configured with UT Tweak Tool Password/System/ADB Settings/USB Mode/MTP-Media Transfer Protocol.
  • 0 Votes
    9 Posts
    1k Views
    arubislanderA
    @aitzol if you mean, your app works on the desktop bit not on the device, you are probably missing the networking policy in your apparmor manifest file. See here for further information
  • Kotlin Multiplatform / Compose For Desktop Support

    1
    0 Votes
    1 Posts
    215 Views
    No one has replied
  • error in the Weather application

    5
    1
    0 Votes
    5 Posts
    495 Views
    ?
    Hello mschmids, there is a huge difference between shoveling between 22mm and 22cm of snow, like the first storm in mid November , in general it is always calculated in centimeters, for your calculation it is correct.
  • Read TextArea from another site

    textarea another site
    2
    0 Votes
    2 Posts
    267 Views
    CiberSheepC
    @dl8aax you could try using a signal
  • Two apps Fluffy Chat in OpenStore

    matrix fluffy chat openstore
    3
    0 Votes
    3 Posts
    555 Views
    A
    @kugiigi : Thanks for explaining. I hope the maintainers of the two Fluffy Chat apps and the OpenStore maintainer(s) also read this.
  • What type of app? (qml, html ...)

    2
    0 Votes
    2 Posts
    344 Views
    AppLeeA
    Hi @schlicki2808 That's an interesting question. My opinion is to do what is best for you. But I will nuance this. There are features like the swipe from bottom that are easier to do with a native QML app. HTML app are considered native as far as they are designed for Ubuntu Touch, but using C++ is faster than Javascript and there are tons of libraries one can use to improve their app. My idea is that HTML apps might be less optimized and maybe more resources hungry. But I might be wrong about it. Pure QML apps use Javascript for the processing. C++ is better and closer to the OS. HTML I imagine uses QtWebview or such to render HTML which should eat a bit of RAM and CPU power... For "simple" apps we won't probably notice the difference. For more power consuming apps, C++ libraries is the best IMHO. Regarding the visual aspect (which I believe is the core of your message) I think each developer has their own style and I'm not sure if the techno used has such an impact compared to the design choices of the developer. But I might be completely wrong as I only have experience with QML. Maybe Joan might have a better take/answer on this.
  • Matrix Notifications Existential Crisis

    4
    0 Votes
    4 Posts
    546 Views
    K
    @ari I see. That makes more sense. I guess the developer of Cinny or Florian.
  • Python should reset PulseAudio

    25
    0 Votes
    25 Posts
    6k Views
    klhK
    @arubislander Brian already did, I wrote it here for reference since the review on the MR is rather long. I can take a look at doing it once I finish higher priority stuff, I've been really missing this option in Podphoenix
  • Weird Issue with c++ vs qml Webview

    2
    0 Votes
    2 Posts
    268 Views
    K
    @ari Maybe it has something to do with chromium flags? Morph uses C++ though not exactly the clickable template.
  • Killing an App

    5
    0 Votes
    5 Posts
    626 Views
    D
    @arubislander Yes, you are right: It is drastic to kill an app. But it seemed the simplest solution. Okay, I was wrong. I will search the net for the media-hub or Pulseaudio, maybe I can control it via python. Thanks for your suggestions.
  • Camera not working in Webview

    Solved
    4
    0 Votes
    4 Posts
    675 Views
    A
    Finally figured it out. Well... kind of. The solution is to not use the Webview, but instead WebEngineView, and make sure to include the onFeaturePermissionRequested method. In conclusion, just steal the code from the discord app.
  • write a command line executable program for ubuntu-touch using C++.

    2
    0 Votes
    2 Posts
    284 Views
    lduboeufL
    @dawnlike history-service is the code that store and retrieve SMS. But notifications of new SMS is managed by telephony-service. Communication between them is handled through dbus with a middleware called Telepathy. So you might listen to dbus signals if you want to be notified of a new sms. If it helps: https://m.youtube.com/watch?v=5b3PGvDbcp8 https://m.youtube.com/watch?v=IGgbEhTrmvg
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    68 Views
    No one has replied
  • qml scroll by sections

    2
    0 Votes
    2 Posts
    314 Views
    K
    @fooxl I don't think there's one in the toolkit but Contacts app has one so perhaps you can just reuse that.
  • Run python script within confined app

    Unsolved apparmor python network html5
    4
    0 Votes
    4 Posts
    599 Views
    arubislanderA
    @jerzecokno Use clickable to create an app skeleton by choosing the Python template. Then copy the content of the Main.qml file of the project I pointed you to. Create a public repository somewhere and then if you have any concrete questions on how to proceed, either ask them here or join our App Development Telegram channel for more interactive support.
  • New music track recognition app

    17
    0 Votes
    17 Posts
    2k Views
    AppLeeA
    @emphrath This is probably a spammer, I'll moderate the link, but it's the second weird message from @ritomkai that raise suspicion. Next time or sooner we'll ban them.
  • How do i make a webapp to publish it on the store

    webapp creator webapp
    2
    0 Votes
    2 Posts
    417 Views
    arubislanderA
    @supervisor just you the Webber app from Open Store and create a webapp with that. No need to publish it though.