For IM applications on zeronet
As there is no code execution in ZeroNet itself the system notifications would not work if ZeroNet/ZeroHello is not opened in the browser
@HelloZeroNet It can be changed. Are you against having System notifications?
They can have an opt-out in the Config page.
Moreover, I've done some research and it seems that plyer, a python library with MIT license, does cross-OS notification (Win, Mac, Linux and Android).
It allows a notification to be sent in a couple of lines of code:
from plyer import notification
notification.notify(
title="Notification title",
message="Long message of the notification",
app_name="Name of the app",
app_icon="Path to the icon to display with the notification",
timeout=10, # Number of seconds before it disappears
ticker="Text to display on status bar as the notification arrives"
)
I think using browsers notification system would be easier. I see no benefits using the system one.
Ok, I misunderstood it. I think that such a thing should be voted by the users, since it could be useful to have notification also when browser is closed (maybe also as opt-out).
@HelloZeroNet Please add this to Todo
I think using browsers notification system would be easier. I see no benefits using the system one.
If it will be easier, please add labels to this issue.
You see no benefits on also using the system one? ZeroNet needs to show notifications when browser is closed, and its a very used approach to call users.
@shortcutme
System notifying must be better.If we opened browser,we don't need notification for IM apps
Every newsfeed item should be an notification, and an API to click "don't show anymore notifications from this kind".
And on the ZeroHello newsfeed, show a button to mark entries as read/unread, and also to mark them with star.
An tab with readed items, and another with read.
I don't think notify on every new newsfeed item is a good idea. This is a separate thing. Like you don't get notification from facebook app on every new post.
What you mean by related items?
I don't think notify on every new newsfeed item is a good idea. This is a separate thing. Like you don't get notification from facebook app on every new post.
But newsfeed only shows items that user subscribed to, so it should show an notification for every item.
What you mean by related items?
Then, if user don't want to see all new topics on ZeroTalk or all messages on chat's lobby, he can click on "don't show anymore this kind of notifications".
What about a service worker?
ZeroNet runs via localhost anyways, so it should get permission to use secure site APIs from the browser.
Could just have it push notifications to the browser, this would also cover the case for notifications when the site (or browser) isn't open.
Most helpful comment
Ok, I misunderstood it. I think that such a thing should be voted by the users, since it could be useful to have notification also when browser is closed (maybe also as opt-out).