Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to notifications #20

Open
danimesq opened this issue Apr 11, 2017 · 8 comments
Open

Support to notifications #20

danimesq opened this issue Apr 11, 2017 · 8 comments

Comments

@danimesq
Copy link
Contributor

No description provided.

@HelloZeroNet
Copy link
Owner

Unfortunetly with the current working method it's not possible, because you need the display logic to decrypt the messages

@danimesq
Copy link
Contributor Author

danimesq commented Apr 11, 2017

Possible when web workers come to ZeroNet (sites working in background). "Like" BitMessage does.

@Emeraude
Copy link

Emeraude commented Sep 9, 2017

Are the metadata also encrypted ? If not we could just display notifications like "You got 1 new message today", without any more information.

@HelloZeroNet
Copy link
Owner

Yes everything is encrypted, so it's not possible right now

@amuuza
Copy link

amuuza commented Oct 5, 2017

What a pity there is no notifier. It is impressive to see a serverless asynchronous messaging tool working like a charm.

@stbinan
Copy link

stbinan commented Feb 23, 2018

Here you go https://git.gnu.io/chbinnc/binchan-s-messy-repo/tree/master/ZeroMailBot

a Python2 script that decrypts your ZeroMail and sends them to a local bot. After you schedule the bot and follow it, you can receive new ZeroMail notification from ZeroHello newsfeed.

And according to shortcutme, it needs a lot of efforts to make it into a ZeroNet plugin:

Currently the site's notification feed is defined by a sql request. To make zeromail notifications possible we need to allow javascript logic to return the latest message list.
It could be possible by extending the newsfeed plugin to support javascript function call signups. After that when the user visits ZeroHello, the plugin would create a sandboxed iframe to load and run the newsfeed returning javascript function and then inserts the items returned to the newsfeed.

@lezsakdomi
Copy link

lezsakdomi commented Nov 9, 2018

Yes, this is an essential feature. I have two more solution ideas:

  • Update hook
    Run a script after a zite update (specified in content.json).
    This causes possible hangs after updates, so I think this idea should be rejected.
    Unless one develops an easy-to-write and forcefully deterministic language for the purpose.
    Needs change in HelloZero/ZeroNet

  • On-query decryption
    Provide more scripting oppurtunity feedFollow
    Yes, a single query should be enough, but with some more advanced SQL functions (decrypt(), getUserAddress()).
    This needs an external change too.

  • SiteWorker
    See previos comment.
    Since the reference refers to ZeroNetPlus, which is "just" a fork, I think we shouldn't rely on that globally.

I think at least on solution should be implemented. The problem this site is facing could arise by the development of other sites too.

@danimesq
Copy link
Contributor Author

danimesq commented Nov 9, 2018

@lezsakdomi

There is already BackgroundProcessing Plugin, made by @imachug, that can power this notifications feature for encrypted data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants