notifications icon indicating copy to clipboard operation
notifications copied to clipboard

Progress Notifications API

Open colinkiama opened this issue 3 years ago • 2 comments
trafficstars

Problem

SysTray apps were phased out but one experience that wasn't taken into account were file syncing services. There isn't a solution for this displaying sync progress data with as much detail as these apps did.

Proposal

My solution to this would be progress notification APIs. These would build upon the ability to replace a notification through referencing its ID and push the idea further with the addition of progress data.

So what ends up happening is that as progress gets updated, the same notification will be swapped with a new one with up to date progress data over time.

Unlike progress indicators in the dock, it will be possible for there to be multiple notifications to have progress data from the same app.

Prior Art (Optional)

https://docs.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/toast-progress-bar

image

colinkiama avatar Jan 05 '22 16:01 colinkiama

The file sync case is already covered by the CloudProviders API: https://world.pages.gitlab.gnome.org/libcloudproviders/index.html

something we don’t currently support is the background portal which has a string arg for reason https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-org.freedesktop.portal.Background

It might make sense to extend the background portal to take a double for progress and use that to replace the unity progress API

danirabbit avatar Jan 07 '24 18:01 danirabbit

On the more complicated end of the spectrum iOS has ActivityKit: https://developer.apple.com/videos/play/wwdc2023/10184

danirabbit avatar Jan 07 '24 18:01 danirabbit