jtxBoard icon indicating copy to clipboard operation
jtxBoard copied to clipboard

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

Open Coernel82 opened this issue 10 months ago • 4 comments

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 avatar Jan 08 '25 14:01 Coernel82

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

patrickunterwegs avatar Jan 08 '25 19:01 patrickunterwegs

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

Coernel82 avatar Jan 09 '25 07:01 Coernel82

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

rightsaidfred99 avatar Jan 11 '25 02:01 rightsaidfred99

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 avatar Jan 14 '25 16:01 patrickunterwegs

Sorry that this took so long, finally I got the headspace back to work more on this. I'm just working on a fix, I'll test it and release it soon.

patrickunterwegs avatar May 07 '25 12:05 patrickunterwegs