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

[BUG] Notification doesn't disappear when entry is deleted by DAVx5 #1686

Open
Coernel82 opened this issue Jan 8, 2025 · 4 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@Coernel82
Copy link

Describe the bug
Cannot swipe away notification

To Reproduce

  1. Create a task with due datetime so that it pops up
  2. Wait for notification
  3. Delete task on another device
  4. DavX⁵ sync
  5. Try to swipe notification away

Only workaround: reboot phone

Expected behavior
Deleted task on other sevices deletes notification after syn

Device and version

  • Device: Fairphone 4
  • Android version: Android 13
  • jtx Board version: 2.09.03.gplay
  • Downloaded from: I guess Google when I look at the version
@Coernel82 Coernel82 added the bug Something isn't working label Jan 8, 2025
@patrickunterwegs
Copy link
Member

Hi @Coernel82 , do you basically have sticky notes activated in the settings?

@Coernel82
Copy link
Author

@patrickunterwegs sage mal wie das auf Deutsch heißt. Fixierte Alarme habe ich an.

@rightsaidfred99
Copy link

It happens because jtxBoard doesn't seem to get the updated notification date so it'll just display this persistent notification. Mine keeps doing it after a reboot though so I delete the task and create the same one with an updated time

@patrickunterwegs
Copy link
Member

Hm, @rightsaidfred99 , I think this is a different issue.

@Coernel82 thanks, I have an idea where the problem lies.
Here's the technical explanation: in order to schedule a notification in the background, an ID for the notification is needed. The technical ID of the entry in the database is used for that.
When DAVx5 synchronizes the entries, it can insert, update and delete entries. On an insert or update is done, there's always the clear ID. Single deletion of entries would also not be a problem. The thing is that DAVx5 deletes entries, that are not present on the server anymore, in bulk - but like that the ID plays no role (DAVx5 just deletes all entries that haven't been marked as "Found on the server". Now as there's no actual technical entry ID in this step, it's hard to cancel the notification. I'll check it out and think about a solution.

@patrickunterwegs patrickunterwegs changed the title [BUG] [BUG] Notification doesn't disappear when entry is deleted by DAVx5 Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants