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

Mark as read not synchronized between app and website #319

Open
Victor-Titan opened this issue Apr 29, 2021 · 4 comments
Open

Mark as read not synchronized between app and website #319

Victor-Titan opened this issue Apr 29, 2021 · 4 comments

Comments

@Victor-Titan
Copy link

Course notifications which have been opened in the website do not mark that course module as read in the app. In the same way, opening a new course module in the app does not mark it as read on opening the notifications in the website.

@abhijeetviswa
Copy link
Member

The app keeps track of read/unread status locally. While the same notification shows up on the website and for the app, reading it at one place does not do the same in the other place. The goal is to eventually add a notification view so that you can view old notifications on your phone just like you would on the website.

@abhijeetviswa abhijeetviswa changed the title Mark as read Mark as read not synchronized between app and website Apr 29, 2021
@Victor-Titan
Copy link
Author

The app keeps track of read/unread status locally. While the same notification shows up on the website and for the app, reading it at one place does not do the same in the other place. The goal is to eventually add a notification view so that you can view old notifications on your phone just like you would on the website.

Do we have the functionality for that in the Moodle API?

@crux-bphc crux-bphc deleted a comment from Victor-Titan May 1, 2021
@abhijeetviswa
Copy link
Member

Yes. There a a bunch of API functions like message_popup_get_popup_notifications, message_popup_get_unread_popup_notification_count, and other such webservices to mark notifications as read etc.

@agrawal-d
Copy link

agrawal-d commented Jun 27, 2021

Yep, you can take a look at the implementation of APIs to sync read state between a client and the server here: https://github.com/agrawal-d/moodle-cms-notifs/blob/main/src/api.rs ( this one marks all as read )

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

3 participants