Yes this helped, thank you 🙂
Alarm popup don't work if event is create with Nextcloud Calendar
-
Hello,
I use Nexcloud Calendar and I sync event with DavDroid. When event have popup alarm defined, popup is not shown on the phone.
First I opened ticket to nextcloud calendar’s team (Issue 342) but it seems that davdroid don’t recognize ACTION’s field in vcard.Below, logs generated by davdroid :
2017-02-14 12:28:46 2 [HttpClient$1] Content-Type: text/calendar; charset=utf-8; component=vevent
2017-02-14 12:28:46 2 [HttpClient$1]
2017-02-14 12:28:46 2 [HttpClient$1] BEGIN:VCALENDAR
PRODID:-//Nextcloud calendar v1.5.0
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
CREATED:20170214T113154
DTSTAMP:20170214T113154
LAST-MODIFIED:20170214T113154
UID:05RKYZIUO0OUM7H0A0SPL
SUMMARY:TEST
CLASS:PUBLIC
STATUS:CONFIRMED
DTSTART;TZID=Europe/Berlin:20170214T130000
DTEND;TZID=Europe/Berlin:20170214T140000
BEGIN:VALARM
ACTION;X-NC-GROUP-ID=0:DISPLAY
TRIGGER:-PT15M
END:VALARM
END:VEVENT
BEGIN:VTIMEZONE
…
END:VTIMEZONE
END:VCALENDAR
2017-02-14 12:28:46 2 [HttpClient$1] <-- END HTTP (2554-byte body)
2017-02-14 12:28:46 2 [ical4android.Event] Parsing iCalendar stream
2017-02-14 12:28:48 2 [ical4android.Event] Assigning exceptions to master events
2017-02-14 12:28:48 2 [syncadapter.CalendarSyncManager] Updating Nextcloud-3756H28VQFH45MVX6ZZN45.ics in local calendar
2017-02-14 12:28:48 2 [ical4android.AndroidEvent] Built event object
PARAMETER #1 = mType: 1, mUri: content://com.android.calendar/events?account_name=Vince&account_type=bitfire.at.davdroid&caller_is_syncadapter=true&account_name=Vince&account_type=bitfire.at.davdroid&caller_is_syncadapter=true, mSelection: null, mExpectedCount: null, mYieldAllowed: false, mValues: eventTimezone=Europe/Berlin title=TEST availability=0 eventStatus=1 dtend=1487077200000 hasAttendeeData=1 allDay=0 dtstart=1487073600000 calendar_id=18 eventEndTimezone=Europe/Berlin accessLevel=3, mValuesBackReferences: null, mSelectionArgsBackReferences: null
2017-02-14 12:28:48 2 [ical4android.AndroidEvent] Adding alarm 15 minutes before event, method: 0To the end of the log :
2017-02-14 12:28:48 2 [ical4android.AndroidEvent] Adding alarm 15 minutes before event, method: 0
For the same test without X-NC-GROUP-ID=0 the log is :
2017-02-14 14:54:36 2 [ical4android.AndroidEvent] Adding alarm 15 minutes before event, method: 1
Do you know if this behavior is normal ?
Thank you,
Best regards. -
Thanks for reporting this DAVdroid bug.
It should be fixed with ical4android/4c7eeaf2. Problem was that two
Action
object are notequal
when their parameters are different, so only the property value must be compared.As a workaround until the next DAVdroid release, you can use the standard
AUDIO
alarm in Nextcloud. -
Thanks for this quick fix