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

create notifications API #485

Open
vesellov opened this issue Mar 31, 2020 · 3 comments
Open

create notifications API #485

vesellov opened this issue Mar 31, 2020 · 3 comments

Comments

@vesellov
Copy link
Contributor

No description provided.

@vesellov
Copy link
Contributor Author

Notifications

@abc22413
Copy link

Could I ask what notifications API is required?

@vesellov
Copy link
Contributor Author

vesellov commented Jul 1, 2020

Hi @abc22413 ! Welcome !

The idea of that story is to provide BitDust UI some way to handle notifications that needs to be displayed for the user.

That includes situations when UI is not running at the moment when notification came. Later, when user opens the UI, it needs to request that new notification endpoint and get those items that needs to be displayed for the user. It is like on your mobile phone - when you switched it ON but something happened while it was OFF - you see a red dot on top of the app icon.

For example: BitDust received a new request from another user who wants to add you as a friend but your UI was not running at that moment - later when you open BitDust UI it suppose to show you that request.

But also if you are running UI at that moment when another user requested to be your friend - notification must be shown right away.

Probably we need to have some flag internally: notification_consumed or something like that.

You can store notifications locally in sqlite3 DB which is already there: https://github.com/bitdust-io/devel/blob/master/chat/message_database.py

If you like we can have on-line call to discuss the idea in more details.

Please join us in Telegram: https://t.me/bitdust or in the slack - i will need your email address to send Slack invite.

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

2 participants