Bug 415091 - Add run commands into the Notification bar
Summary: Add run commands into the Notification bar
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-12 14:35 UTC by trmdi
Modified: 2020-05-30 14:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of notifications buttons on current version 1.14.2 as it is now. (178.61 KB, image/png)
2020-05-30 14:08 UTC, kdebugtracker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description trmdi 2019-12-12 14:35:46 UTC
It would be super convenient if we can quickly run commands from the notification bar without have to open KDE Connect then choose Run commands blahblah...

I mean something like this: http://media02.hongkiat.com/android-notification-features/interact-from-notification.jpg
But replace the "Archive" and "Reply" buttons with our run commands.
Comment 1 Anjani Kumar 2020-04-01 14:48:10 UTC
(In reply to trmdi from comment #0)
> It would be super convenient if we can quickly run commands from the
> notification bar without have to open KDE Connect then choose Run commands
> blahblah...
> 
> I mean something like this:
> http://media02.hongkiat.com/android-notification-features/interact-from-
> notification.jpg
> But replace the "Archive" and "Reply" buttons with our run commands.

It has been implemented but not exactly like this. We've added a button that launches run commands interface.
Comment 2 kdebugtracker 2020-05-29 20:02:12 UTC
(In reply to Anjani Kumar from comment #1)
> (In reply to trmdi from comment #0)
> > It would be super convenient if we can quickly run commands from the
> > notification bar without have to open KDE Connect then choose Run commands
> > blahblah...
> > 
> > I mean something like this:
> > http://media02.hongkiat.com/android-notification-features/interact-from-
> > notification.jpg
> > But replace the "Archive" and "Reply" buttons with our run commands.
> 
> It has been implemented but not exactly like this. We've added a button that
> launches run commands interface.

Anjani, the reporter is aware of this and is suggesting to have the commands be in the notification itself, instead of how it is now: click "run commands" button in notification, open app which shows the commands, then click the command you want.

They want it to be:
open notifications, and see the exact command in the notification itself as a button, and run it right there and then. Instead of having to do 2 extra clicks to run it. See the picture attached, its showing how the Gmail app uses 2 buttons with actions right in the notification and this is what they want.

What might make it weird is that you might end up with too many commands and it wouldn't be possible to have buttons for all of them. So then, which one goes into the notifications if this was implemented? You would need to implement some way to say that only X, Y, and Z commands should have direct buttons in the notification
Comment 3 Anjani Kumar 2020-05-29 20:15:49 UTC
(In reply to kdebugtracker from comment #2)
> (In reply to Anjani Kumar from comment #1)
> > (In reply to trmdi from comment #0)
> > > It would be super convenient if we can quickly run commands from the
> > > notification bar without have to open KDE Connect then choose Run commands
> > > blahblah...
> > > 
> > > I mean something like this:
> > > http://media02.hongkiat.com/android-notification-features/interact-from-
> > > notification.jpg
> > > But replace the "Archive" and "Reply" buttons with our run commands.
> > 
> > It has been implemented but not exactly like this. We've added a button that
> > launches run commands interface.
> 
> Anjani, the reporter is aware of this and is suggesting to have the commands
> be in the notification itself, instead of how it is now: click "run
> commands" button in notification, open app which shows the commands, then
> click the command you want.
> 
> They want it to be:
> open notifications, and see the exact command in the notification itself as
> a button, and run it right there and then. Instead of having to do 2 extra
> clicks to run it. See the picture attached, its showing how the Gmail app
> uses 2 buttons with actions right in the notification and this is what they
> want.
> 
> What might make it weird is that you might end up with too many commands and
> it wouldn't be possible to have buttons for all of them. So then, which one
> goes into the notifications if this was implemented? You would need to
> implement some way to say that only X, Y, and Z commands should have direct
> buttons in the notification

Well, there are only three action buttons possible in Android notification. Since the clipboard workaround on Android 10 and later requires a button in the notification, we are left with only two. Many people feel send files is pretty handy too in the notification. So we have one. We could put the most executed command but people generally use it for more than one command like lock/unlock.
Comment 4 trmdi 2020-05-29 20:31:27 UTC
(In reply to Anjani Kumar from comment #3)
> (In reply to kdebugtracker from comment #2)
> > (In reply to Anjani Kumar from comment #1)
> > > (In reply to trmdi from comment #0)
> > > > It would be super convenient if we can quickly run commands from the
> > > > notification bar without have to open KDE Connect then choose Run commands
> > > > blahblah...
> > > > 
> > > > I mean something like this:
> > > > http://media02.hongkiat.com/android-notification-features/interact-from-
> > > > notification.jpg
> > > > But replace the "Archive" and "Reply" buttons with our run commands.
> > > 
> > > It has been implemented but not exactly like this. We've added a button that
> > > launches run commands interface.
> > 
> > Anjani, the reporter is aware of this and is suggesting to have the commands
> > be in the notification itself, instead of how it is now: click "run
> > commands" button in notification, open app which shows the commands, then
> > click the command you want.
> > 
> > They want it to be:
> > open notifications, and see the exact command in the notification itself as
> > a button, and run it right there and then. Instead of having to do 2 extra
> > clicks to run it. See the picture attached, its showing how the Gmail app
> > uses 2 buttons with actions right in the notification and this is what they
> > want.
> > 
> > What might make it weird is that you might end up with too many commands and
> > it wouldn't be possible to have buttons for all of them. So then, which one
> > goes into the notifications if this was implemented? You would need to
> > implement some way to say that only X, Y, and Z commands should have direct
> > buttons in the notification
> 
> Well, there are only three action buttons possible in Android notification.
> Since the clipboard workaround on Android 10 and later requires a button in
> the notification, we are left with only two. Many people feel send files is
> pretty handy too in the notification. So we have one. We could put the most
> executed command but people generally use it for more than one command like
> lock/unlock.

Can the user choose a command to add there instead?
Comment 5 Anjani Kumar 2020-05-29 20:47:41 UTC
(In reply to trmdi from comment #4)
> (In reply to Anjani Kumar from comment #3)
> > (In reply to kdebugtracker from comment #2)
> > > (In reply to Anjani Kumar from comment #1)
> > > > (In reply to trmdi from comment #0)
> > > > > It would be super convenient if we can quickly run commands from the
> > > > > notification bar without have to open KDE Connect then choose Run commands
> > > > > blahblah...
> > > > > 
> > > > > I mean something like this:
> > > > > http://media02.hongkiat.com/android-notification-features/interact-from-
> > > > > notification.jpg
> > > > > But replace the "Archive" and "Reply" buttons with our run commands.
> > > > 
> > > > It has been implemented but not exactly like this. We've added a button that
> > > > launches run commands interface.
> > > 
> > > Anjani, the reporter is aware of this and is suggesting to have the commands
> > > be in the notification itself, instead of how it is now: click "run
> > > commands" button in notification, open app which shows the commands, then
> > > click the command you want.
> > > 
> > > They want it to be:
> > > open notifications, and see the exact command in the notification itself as
> > > a button, and run it right there and then. Instead of having to do 2 extra
> > > clicks to run it. See the picture attached, its showing how the Gmail app
> > > uses 2 buttons with actions right in the notification and this is what they
> > > want.
> > > 
> > > What might make it weird is that you might end up with too many commands and
> > > it wouldn't be possible to have buttons for all of them. So then, which one
> > > goes into the notifications if this was implemented? You would need to
> > > implement some way to say that only X, Y, and Z commands should have direct
> > > buttons in the notification
> > 
> > Well, there are only three action buttons possible in Android notification.
> > Since the clipboard workaround on Android 10 and later requires a button in
> > the notification, we are left with only two. Many people feel send files is
> > pretty handy too in the notification. So we have one. We could put the most
> > executed command but people generally use it for more than one command like
> > lock/unlock.
> 
> Can the user choose a command to add there instead?

Add where? The one remaining slot?
Comment 6 trmdi 2020-05-29 23:29:34 UTC
(In reply to Anjani Kumar from comment #5)
> Add where? The one remaining slot?

I meant to make these 2 slots are customizable.

Copy | A | B

A and B is customizable.
Comment 7 kdebugtracker 2020-05-30 14:08:28 UTC
Created attachment 128933 [details]
Screenshot of notifications buttons on current version 1.14.2 as it is now.

This is how the notification is right now in the current latest version 1.14.2