Repository navigation
(Web) Push Notifications #3125
w0rd-driven
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I would love if Livebook implemented web push notifications natively, through both the web and desktop. My use case is deep linking between apps in addition to notifying when a long-running process completes.
Deep linking could open a URL to the app's UI or kick off another process in the workflow between apps. There could be uses in Livebook proper like notifications for version upgrades but I could also see a need for a notification area that lets you mark them as read. I can also see little utility for this beyond my needs and it highly depends on preference.
The PoC I have is that on my work machine I use Docker compose for primary work that also serves as the app server. For the notification part, I have Livebook Desktop notebook running on the host macOS as an app. This is a very simple wrapper around the CLI
terminal-notifier. I then use Req to send a request to http://host.docker.internal:32123/proxy/apps/notifications/ with the payload to send the notification. This works but is very feature incomplete as I likely need to find a more modern os notification package when web push ideally would solve for seemingly all cases. I can post this PoC if it seems useful.One thing I haven't tried is to see if I could get the requisites of push in an app or Kino but I have a feeling I won't have the permissions at that level if it's behind an iframe.
All reactions