jtxBoard
jtxBoard copied to clipboard
[BUG] Notification doesn't disappear when entry is deleted by DAVx5
Describe the bug Cannot swipe away notification
To Reproduce
- Create a task with due datetime so that it pops up
- Wait for notification
- Delete task on another device
- DavX⁵ sync
- 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
Hi @Coernel82 , do you basically have sticky notes activated in the settings?
@patrickunterwegs sage mal wie das auf Deutsch heißt. Fixierte Alarme habe ich an.
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
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.
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.