UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. wilson101
    3. Posts
    W
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 21
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: New ConverseJS (XMPP) app with broken source links?

      should I add to clickable.yaml here

      clickable_minimum_required: 8.6.0
      builder: rust
      kill: conversejs
      install_root_data:

      • manifest.json
      • content-hub.json
      • conversejs.apparmor
      • conversejs.desktop
      • assets
      • www

      the folder of the module?

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @pparent ubuntu-phablet aa-exec[74446]: qrc:/qml/Main.qml:27:1: module "Pparent.Notifications" is not installed yes i see this in clickable logs

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      said in New ConverseJS (XMPP) app with broken source links?:

      import Pparent.Notifications 1.0

      It's building and installing the app it runs but freezes.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      I did ./setup-project.sh [PROJECT-PATH] so it must be installed.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @pparent The problem now is that I can't import your code. This is main.qml https://pastebin.com/raw/kt9cpWBz I get :/qml/Main.qml:37 NotificationHelper is not a type

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      I'm doing something wrong the app froze

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      I'm trying this now onFeaturePermissionRequested: {
      grantFeaturePermission("http://127.0.0.1:9090/index.html", Notifications, true);
      }

      I saw the examples here https://doc.qt.io/qt-6/qml-qtwebengine-webengineview-obsolete.html#featurePermissionRequested-signal

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @pparent I have a question about onFeaturePermissionRequested: {
      grantFeaturePermission(securityOrigin, feature, true);
      }
      should I replace feature with notification or whatever name it has in qml or leave it like that ?

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @pparent desktop notifications are enabled in covnerejs by default, but I don't know how to enable them in QML to be able to interact with your module.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @pparent It's not ideal for sure. But QML is to confusing for me to be able to implement the push notifications properly with the js code of conversejs. If you have any ideas how to do it exactly I will appreciate it.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      Ok I fixed that now sound notifications are working, but we need to make the app not suspend from the tweak tool if we want to get notifications on locked screen.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      I'm wondering why the sound notifications don't work even if I use the tweak tool and prevent app suspension. On my computers browser works. On the app don't work.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @pparent That would be great yes! I have one question. Where should I put helper.send("Hello world") ? in the main.qml? I see that it use desktop web notification, page title change, and notification audio playback. So does that mean I can just put the code on top of the main.qml and when i receive message in the app it will automatically send notification?

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @pparent I need to find in the conversejs source where messages are received and hook that to the push notifications with js. On theory should work. But I will first try your implementation. I already executed your script.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @pparent Thank you! I will check it now. 😊

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @poVoq To be honest you have right. They get logs on servers from IP and browser metrics. I will use local files and implement hook notifications now. I will try. At least we can use it with that type of notifications till I found out how to implement the ubports push notifications.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @poVoq OK I will delete the app from the store.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @poVoq Anti Privacy ? You can see the code from the links in the CDN. If I download the dist files from the release of ConverseJS official github account I will need to always download and replace the files, also that makes the app heavier.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      @poVoq Yes, github just sucks for me. Do you have any suggestions on how to implement the push notifications https://docs.ubports.com/en/latest/appdev/guides/pushnotifications.html in a web app ? Or I should try to implement web hook to email.

      posted in App Development
      W
      wilson101
    • RE: New ConverseJS (XMPP) app with broken source links?

      I'm currently thinking how to implement push notifications or some other way like a JavaScript hook to send notifications on email(Dekko) which I saw has push notifications.

      posted in App Development
      W
      wilson101