Yes, it does - you’re awesome, thank you very much!
Add missing task properties
-
Ahoj and moin,
could you please add missing properties likecategories
to your implementation of tasks in ical4android?The feature is also requested from a user of the Tasks Android app. I use the app myself and miss the categories in my other apps (Nextcloud for example). As I looked up the iCalendar specification I saw that the optional properies and those from RFC 7896 are not implemented yet, I would be very grateful if you could add (most of) them.
Thank you in advance, keep up the good work. I use some Bitfire Apps from F-Droid for years now.
Greetings
~HerHde -
I, too, would greatly appreciate this!
-
This would be an awesome feature, that doesn’t seem to be hard to implement. Please consider adding support for categories!
-
Is this being worked on? Please?
-
As far as I know, OpenTasks doesn’t support categories in the UI yet: https://github.com/dmfs/opentasks/issues/14
Do you know whether the backend supports categories and whether its usable or whether the UI also support categories?
-
I’m mainly asking for the Android App “Tasks”, which uses ical4android to sync using Caldav, and already supports categories in the UI. See https://github.com/tasks/tasks/issues/635
-
Any updates on this? Anything I can do to help?
-
@Bob9 It’s very complicated.
- Not required for CATEGORIES (but for the properties of RFC 7986): These properties would ideally be implemented in ical4j, because standard properties should be in ical4j and shouldn’t require custom (extended) properties in ical4android. So, you could write a patch to get those properties into ical4j (current ical4j version: 3.x).
- Not required for CATEGORIES (but for the properties of RFC 7986): Next problem: This would have to be backported to ical4j 2.x, because ical4j 3.x requires Java 8, which is only available at Android 7+, while DAVdroid is for Android 4.4+ and we don’t want to raise the minimum API level to Android 7 yet. So, you could make sure that those properties are available in ical4j 2.x, too. (Alternatively, you could play around to get ical4j 3.x working on Android 4.4+ with parts of the Java 8 API on older Android versions – this would be an ideal solution because ical4j 3.x is the future, but it it will be cumbersome.)
- Then those properties would have to be implemented in the ical4android
Event
/Task
classes. This should be quite easy. - To allow DAVdroid to use those properties, they should also be handled by
AndroidEvent
/AndroidTask
, so this should be implemented too.- Android events don’t seem to have any category field, so we can only treat the categories as an unknown field, and for this we don’t even need to do 3) (in fact, if the
Event
class had acategories
property,AndroidEvent
would have to use and sync it to some extra field, because it wouldn’t be in theunknownProperties
field anymore). - If OpenTasks has already categories, we can sync them there (but there is no UI yet, as far as I see).
- Android events don’t seem to have any category field, so we can only treat the categories as an unknown field, and for this we don’t even need to do 3) (in fact, if the
At the moment, I don’t have time for all of this, but if you want to write patches, please don’t hesitate
-
Update of my previous posting: Edited 1, 2 because ical4j of course has
CATEGORIES
. What it doesn’t have yet are the properties of RFC 7986. -
bmaehr has written some code to add categories support to ical4android, his patch is here: https://git.bmaehr.com/open-source/ical4android/commit/e36207bb64ce6f47da6d4d83b535c5ce3a85109d
Would you consider merging it, so it is in mainline ical4android?
-
@ccoenen
AndroidEvent
should be modified, too, because otherwise, DAVx⁵ would lose functionality: Now,CATEGORIES
are saved inEvent.unknownProperties
, which are saved to the Android DB byAndroidEvent
. So, DAVx⁵ saves and restoresCATEGORIES
at the moment as “unknown properties” without knowing anything about whatCATEGORIES
is and does.As soon as
Event
understandsCATEGORIES
, they’re not being put toEvent.unknownProperties
anymore, soAndroidEvent
doesn’t save/restoreCATEGORIES
anymore. The same applies toTask
andAndroidTask
.So, if you could create a merge request for ical4android (soon: ical4x⁷), I’d merge it to a separate branch so that
CATEGORIES
can be implemented inAndroidEvent
/AndroidTask
, too before merging it to master. -
I passed this on. Thanks for looking at this so quickly!
-
Another person (c64bob on GitHub) took this up again. He posted a merge request Are these two things combined what you had in mind @rfc2822 ?
-
@ccoenen Hello, I have merged it to https://gitlab.com/bitfireAT/ical4android/tree/support-categories. But it’s essentially the same as the first MR and only the first of the two things I have mentioned.
-
Implemented with https://gitlab.com/bitfireAT/ical4android/commit/18585c9db4cc6d62ec9f26b189c4efd9c30ad67c. Anyone willing to test DAVx⁵ with the changes? Can send APK, or beta test in Google Play.
-
I’d be willing to give it a try, but I am not sure if I have an app that would actually display something useful?
-
@ccoenen said in Add missing task properties:
I’d be willing to give it a try, but I am not sure if I have an app that would actually display something useful?
It would only retain
CATEGORIES
, although you can’t see/edit them in OpenTasks. But you can, for instance,- create a task in Nextcloud Tasks (or another client that supports
CATEGORIES
) - sync it with DAVx⁵
- edit the task with OpenTasks (for instance, the summary)
- sync it to the server again
- and it will still have the same
CATEGORIES
(in previous versions,CATEGORIES
were lost).
- create a task in Nextcloud Tasks (or another client that supports
-
@rfc2822 will do! Right now I’m on DAVx5 from F-Droid (2.5.4.1-ose), how Do I get a prerelease-version?
-
@rfc2822 I’m still up for testing if you need me. I just need an apk.
-
Available in 2.5.5, which has already been released and should appear in F-Droid as soon as they have compiled it.