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

    New ConverseJS (XMPP) app with broken source links?

    Scheduled Pinned Locked Moved App Development
    45 Posts 4 Posters 526 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.
      • poVoqP Offline
        poVoq
        last edited by poVoq

        There is a new version of a ConverseJS webapp (after two previous versions by other authors), and this one seems quite up to date, but the source links are broken:

        https://open-store.io/app/conversejs.wilson101

        Is the dev here on the forum and could fix that and maybe explain if this is based on one of the earlier apps?

        Thanks.

        Fairphone 5 (Not yet installed UT on it though)

        G W 2 Replies Last reply Reply Quote 0
        • G Offline
          gpatel-fr @poVoq
          last edited by gpatel-fr

          @poVoq

          hello, not the dev here - but the links are not broken for me. The app is supposed to be based on

          https://github.com/luigi311/ConverseJS-ubports

          the links are a bit strange though (why not a software forge ? if the author don't like Github, there are other such as codeberg...). It's not stated in the original repo that the author has given up. Personally I'd not use this software without more information.

          poVoqP 1 Reply Last reply Reply Quote 2
          • poVoqP Offline
            poVoq @gpatel-fr
            last edited by

            @gpatel-fr ah, they changed the links after I posted this. It was a broken github link before.

            But I agree, the new links are quite bad as well.

            Fairphone 5 (Not yet installed UT on it though)

            1 Reply Last reply Reply Quote 0
            • W Offline
              wilson101 @poVoq
              last edited by

              @poVoq Hi, It's web app based on the work of https://github.com/luigi311/ConverseJS-ubports. I already added new links.

              poVoqP 1 Reply Last reply Reply Quote 0
              • W Offline
                wilson101
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • poVoqP Offline
                  poVoq @wilson101
                  last edited by

                  @wilson101 Cool. Codeberg is definitly a better place to share development progress.

                  Fairphone 5 (Not yet installed UT on it though)

                  poVoqP W 2 Replies Last reply Reply Quote 0
                  • poVoqP Offline
                    poVoq @poVoq
                    last edited by

                    Local files are replaced with CDN links from the official website of ConverseJS so the app will always be up to date and working and takes less storage.

                    You should probably mention that in the app description on Open-Store, as it is an anti-privacy feature that wasn't present in previous versions.

                    Fairphone 5 (Not yet installed UT on it though)

                    W 1 Reply Last reply Reply Quote 0
                    • W Offline
                      wilson101 @poVoq
                      last edited by

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

                      poVoqP pparentP 2 Replies Last reply Reply Quote 0
                      • poVoqP Offline
                        poVoq @wilson101
                        last edited by

                        @wilson101 Sorry, it has been too long ago since I last worked on this but I remember notifications were also an issue with my initial ConverseJS app (the one luigi311 forked).

                        Fairphone 5 (Not yet installed UT on it though)

                        1 Reply Last reply Reply Quote 1
                        • W Offline
                          wilson101 @poVoq
                          last edited by

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

                          poVoqP 1 Reply Last reply Reply Quote 0
                          • poVoqP Offline
                            poVoq @wilson101
                            last edited by

                            @wilson101 Using the CDN like that means the ConverseJS developer can track every time any user opens their Ubuntu Touch ConverseJS app and also approximately from where.

                            Fairphone 5 (Not yet installed UT on it though)

                            W 1 Reply Last reply Reply Quote 0
                            • W Offline
                              wilson101 @poVoq
                              last edited by

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

                              poVoqP 1 Reply Last reply Reply Quote 0
                              • poVoqP Offline
                                poVoq @wilson101
                                last edited by

                                @wilson101 Why? I am just saying you should mention that on the store page.

                                Fairphone 5 (Not yet installed UT on it though)

                                W 1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wilson101 @poVoq
                                  last edited by

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

                                  1 Reply Last reply Reply Quote 1
                                  • pparentP Offline
                                    pparent @wilson101
                                    last edited by pparent

                                    @wilson101 said in 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.

                                    Maybe you can look at this:

                                    https://forums.ubports.com/topic/11375/send-notification-locally-from-qt-c-qml-app.

                                    It may not be push notification as such, because your app would have to keep running unsuspended in background, but it is sill notifications in a webview.

                                    W 1 Reply Last reply Reply Quote 2
                                    • W Offline
                                      wilson101 @pparent
                                      last edited by

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

                                      pparentP 1 Reply Last reply Reply Quote 0
                                      • pparentP Offline
                                        pparent @wilson101
                                        last edited by

                                        @wilson101

                                        That being said XMMP protocol might support real push notifications, i.e the server calls a endpoint ( here https://push.ubports.com/notify ) when a new message arrives, and this allows to wake up the phone and display notification. This would be more ideal as the app would not need to run in background to get the notifications.

                                        I don't know how easy this would be though, especially if you're not the developer of the underlying js application.

                                        W poVoqP 2 Replies Last reply Reply Quote 1
                                        • W Offline
                                          wilson101 @pparent
                                          last edited by

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

                                          pparentP 1 Reply Last reply Reply Quote 0
                                          • pparentP Offline
                                            pparent @wilson101
                                            last edited by pparent

                                            @wilson101

                                            Note that I've just update the documention of the module, there was a small mistake. (It's not helper.send("Hello world") but helper.showNotificationMessage("title","Hello world")

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

                                            I need to find in the conversejs source where messages are received and hook that to the push notifications with js.

                                            Yes but note that it is not the most optimal way to do. In theory the most ideal would be that the app registers a Push notification server directly to the XMPP server, so that the XMPP server itself send the notification to Ubports push server and then to the phone, so that even if the app is not running at all, and no js from conversejs is running, you still can get the notification.

                                            W 1 Reply Last reply Reply Quote 0
                                            • W Offline
                                              wilson101 @pparent
                                              last edited by

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

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