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

    click on notification bubble

    Scheduled Pinned Locked Moved OS
    36 Posts 6 Posters 1.6k Views 3 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.
    • mihaelM Offline
      mihael @gpatel-fr
      last edited by

      @gpatel-fr Yes, I think talking about this in a forum is healthy and helps me (maybe others too) understand what others are thinking because it may not in the end be something that is desired...

      I guess my first intention in asking the initial question was to see if this is an expected behaviour or it was rather supposed to work and it doesn't anymore.

      So I understand that it was never meant (yet) to work this way - to click on the bubble and open the app that the bubble reffers to.

      Then, I guess, I tried to ask if this is something that would be desired.

      Then, I guess again, in case that would be a good idea, it would be the question if that is something that can be done.

      1 Reply Last reply Reply Quote 0
      • P Offline
        projectmoon
        last edited by

        I agree with this. Swiping the notification makes it disappear into the list. Tapping the notification should just execute the notification handler, like tapping it from the notification list does.

        mihaelM 1 Reply Last reply Reply Quote 0
        • mihaelM Offline
          mihael @projectmoon
          last edited by

          @projectmoon said:

          Tapping the notification should just execute the notification handler

          You mean "tapping the notification bubble"?

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            projectmoon @mihael
            last edited by

            @mihael yes, tapping the floating one that appears when the notification appears. It doesn't make sense to me to have the tap dismiss the notification into the notification bar, when you can do that with a swipe.

            1 Reply Last reply Reply Quote -1
            • brenno.almeidaB Offline
              brenno.almeida
              last edited by brenno.almeida

              Its definitely a Lomiri UI inconsistency, not an app issue. From apps perspective, there's no way to tweak this behavior. And there's no difference between an app using dbus or the http apis to send notifications, they end up flowing over the same path in your device.

              G 1 Reply Last reply Reply Quote -1
              • G Offline
                gpatel-fr @brenno.almeida
                last edited by

                @brenno.almeida said:

                From apps perspective, there's no way to tweak this behavior.

                not sure what you are meaning by 'this behavior' and 'tweaking'.

                What I understand is there would be no way to display a time out notification and detect if the user has pressed the notification before it closes by itself.

                If this is what you mean, this example shows how it can be done..

                Granted, don't know if this can work from an unconfined app. This caveat was not part of the discussion 🙂

                brenno.almeidaB 1 Reply Last reply Reply Quote 0
                • mihaelM Offline
                  mihael
                  last edited by mihael

                  So just speaking from the user point of view, not developer:

                  Right now, there is a notification bubble that the user can interact with by swiping it away and this notification bubble also has a time out - it disappears by itself.

                  Then, there is the notification in the notification list - this notification has a "load" - like info about what app to open and some other info that is passed to the app. The user can interact with this notification by tapping on it - then the UI opens that specific app and passes that specific info to the app.

                  My question is: can't the "load" be included in the notification bubble as well? And then the UI adds the possibility for the user to interact with the bubble by tapping on it.

                  CiberSheepC G 2 Replies Last reply Reply Quote 0
                  • CiberSheepC Offline
                    CiberSheep @mihael
                    last edited by

                    @mihael this is the intended behavior.
                    No click on notification bubbles, please.
                    I have disabled notification bubbles long time ago, as they turn on the screen and that's annoying.
                    Notifications should show in the notifications indicator. All of them in one place.

                    Another planet, another time, another universe!

                    mihaelM 2 Replies Last reply Reply Quote 0
                    • mihaelM Offline
                      mihael @CiberSheep
                      last edited by

                      @CiberSheep That could actually work as a workaround solution: to disable bubbles and enable notifications sound: this way I am notified that there is a new message / email but I don't have to wait for the bubble to disappear before I scroll down the notifications list and click on the notification. However, this introduces an extra step: to turn on the screen by pressing the power button.

                      What I was looking for is a simple, direct, straight forward way of being notified and then opening that specific app.

                      I also have to explain a detail about my context: I don't have a passcode or fingerprint reader enabled, so I don't have these extra steps of unlocking the phone.

                      1 Reply Last reply Reply Quote 0
                      • brenno.almeidaB Offline
                        brenno.almeida @gpatel-fr
                        last edited by brenno.almeida

                        @gpatel-fr I'm talking about the title, that an app has no API to set an action when clicking on the notification bubble.

                        I think your example shows that, as it is not using the official lomiri api for this. So it doesn't work with an http post to the push server for example.

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          gpatel-fr @mihael
                          last edited by

                          @mihael said:

                          can't the "load" be included in the notification bubble as well? And then the UI adds the possibility for the user to interact with the bubble by tapping on it.

                          I have looked at the spec for push notifications. Not the http notifications via the ubports push server, the notifications via d-bus, the so-called "low-level API", the 'postal message':

                          helperoutput.png

                          here is an exemple use from Dekko source code:

                          
                          QJsonObject NotificationWatcher::buildSummaryMessage(const QString &msg) {
                          
                          
                              QString appDir = QCoreApplication::applicationDirPath();
                              appDir.replace(QRegExp("dekko2.dekkoproject/.*"), "dekko2.dekkoproject/current/");
                              QString icon = QString("file://").append(appDir).append("dekko.png");
                          
                              QJsonObject c;
                              c["summary"] = msg;
                              c["popup"] = true;
                              c["persist"] = true;
                              c["icon"] = icon;
                              QJsonArray actions = QJsonArray();
                              QString actionUri = QStringLiteral("appid://dekko2.dekkoproject/dekko/current-user-version");
                              actions.append(actionUri);
                              c["actions"] = actions;
                          
                              QJsonObject notification;
                              notification["card"] = c;
                              notification["sound"] = true;
                              notification["vibrate"] = vibrate();
                              QJsonObject message;
                              message["notification"] = notification;
                              return message;
                          }   
                          

                          what is important is that Dekko does everything 'right' to allow for the system to activate it when clicking (pressing) the bubble notification. There is nothing that Dekko is purposely NOT doing to disable this capability that is said to be possible in plain english in the doco:

                          If you add a URL, then bubble notifications are clickable and launch that URL.
                          

                          so it can be considered like a bug, yes. I'm changing my point of view here. Per the doc, it was designed to work like you want it to work, but obviously it don't (I checked again with Dekko).

                          I guess that it has never worked like that though.

                          For apps that are using the high level Api, I don't know if it's even possible to pass an activation URI so it's possible that this capability was not really wanted as it seemed just not doable.

                          mihaelM K 2 Replies Last reply Reply Quote 1
                          • mihaelM Offline
                            mihael @gpatel-fr
                            last edited by mihael

                            @gpatel-fr Great find!

                            I don't know where to search but maybe we need to inspect the code in the OS for handling the bubble.

                            Some time ago I had to write a service worker for browsers and I had to specifically program what it is done when a notification is clicked.

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              kristatos @gpatel-fr
                              last edited by

                              @gpatel-fr said:

                              I guess that it has never worked like that though.

                              I'm not 100% sure, but AFAIR it was working like this in earlier UT-Versions (16.04, maybe 20.04)

                              BQ Aquaris E4.5 (UT 16.04)
                              Vollaphone (UT 24.04)
                              Vollaphone 22 (UT 24.04)

                              G 1 Reply Last reply Reply Quote 0
                              • G Offline
                                gpatel-fr @kristatos
                                last edited by

                                @kristatos

                                interesting, unfortunately it's very unlikely that someone still running 16.04 is reading this, maybe someone running 20.04 could chime in ?

                                P K 2 Replies Last reply Reply Quote 0
                                • P Offline
                                  projectmoon @gpatel-fr
                                  last edited by

                                  @gpatel-fr said:

                                  @kristatos

                                  interesting, unfortunately it's very unlikely that someone still running 16.04 is reading this, maybe someone running 20.04 could chime in ?

                                  I have a Nexus 5 in a drawer... that might be running 16.04... Assuming it actually turns on, which is not a given.

                                  G 1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    gpatel-fr @projectmoon
                                    last edited by

                                    @projectmoon said:

                                    I have a Nexus 5 in a drawer... that might be running 16.04

                                    interesting. Don't expect it to do any better in 26.04 (if it's supported one day). Notification bubbles don't work as per the doc in 26.04 either, it's not worth the bother to upgrade 🙂

                                    P 1 Reply Last reply Reply Quote 0
                                    • K Offline
                                      kristatos @gpatel-fr
                                      last edited by

                                      @gpatel-fr I still have my E4.5 in fully working condition. Maybe I'll test with a spare SIM-card if the notifications are working like expected 😉

                                      BQ Aquaris E4.5 (UT 16.04)
                                      Vollaphone (UT 24.04)
                                      Vollaphone 22 (UT 24.04)

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        projectmoon @gpatel-fr
                                        last edited by

                                        @gpatel-fr would not upgrade it. Just test notifications. It is indeed 16.04 and turns on. Haven't tested yet though.

                                        1 Reply Last reply Reply Quote 0
                                        • mihaelM Offline
                                          mihael
                                          last edited by

                                          I found my old phone (Meizu Pro5) with 16.04. I can confirm that I can click on the bubble when I receive a new email and it opens Dekko2.

                                          G 1 Reply Last reply Reply Quote 0
                                          • mihaelM Offline
                                            mihael @CiberSheep
                                            last edited by

                                            @CiberSheep said:

                                            No click on notification bubbles, please.

                                            I don't want to get you upset, I am not trying to convince anybody of anything, I am just trying to understand... but it seems as if I touched a sensitive issue here: why are you against click on notification bubbles? - especially since you have them disabled, then it would not affect you in any way. Or will that somehow make the OS worse / slow / etc? - as I said, I am just trying to understand. Thank you.

                                            CiberSheepC 1 Reply Last reply Reply Quote 1

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post