Jul 10, 2019

Issue: Google Calendar ignores Alarms (Notifications) in Events!

Hello,

I am trying to send an event reminder from my Web application to a Gmail account. 
The event is successfully added to Google Calendar, but it does not import the correct Trigger time reminder, which is always set to 30 minutes.

The following code represents two different .ics files. In fact, event is added for each file but not with the exact Trigger time.

BEGIN:VCALENDAR
PRODID:-//Ben Fortuna//iCal4j1.0//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTAMP:20190710T160855Z
DTSTART:20190810T111500Z
DTEND:20190810T145000Z
SUMMARY:Your flight from London (Heathrow) to Athens (El. Venizelos)
ORGANIZER:MAILTO:noreply@aegeanair.com
ATTENDEE;ROLE=REQ-PARTICIPANT;CN=benanesmalek@gmail.com:MAILTO:benanesmalek@gmail.com
TZID:Europe/London
UID:d5d0cd63-667e-4bce-86c5-053012c7a23d
BEGIN:VALARM
TRIGGER:-P0DT3H40M0S
ACTION:DISPLAY
DESCRIPTION:Your flight from London (Heathrow) to Athens (El. Venizelos)
END:VALARM
END:VEVENT
END:VCALENDAR
--------------------------------
BEGIN:VCALENDAR
PRODID:-//Ben Fortuna//iCal4j1.0//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTAMP:20190710T145600Z
DTSTART:20190809T103000Z
DTEND:20190809T143000Z
SUMMARY:Your flight from Athens (El. Venizelos) to London (Heathrow)
ORGANIZER:MAILTO:noreply@aegeanair.com
ATTENDEE;ROLE=REQ-PARTICIPANT;CN=benanesmalek@gmail.com:MAILTO:benanesmalek@gmail.com
TZID:Europe/London
UID:ed4240dd-6c69-48db-bb0d-206726e9d809
BEGIN:VALARM
TRIGGER:-PT3H40M
ACTION:DISPLAY
DESCRIPTION:Your flight from Athens (El. Venizelos) to London (Heathrow)
END:VALARM
END:VEVENT
END:VCALENDAR

I would be very grateful if you could help me to identify the issue. 

Thank you!
Locked
Informational notification.
This question is locked and replying has been disabled.
Community content may not be verified or up-to-date. Learn more.
All Replies (3)
Nov 6, 2019
The problem described here depends on the generated UID of the ICAL event. I tried it myself.
My UID looks the same as the one from a Google event. But when I import my file into the calendar, the valarm is not imported.
But when I export another event from my g-calendar and copy the UID from the exported google-ics file into my own ics file and import my file after that again, the valarm-trigger is imported from the g calendar.

But i didn't get it until now, how to generate a working UID for google :-\.

Greetz


Edit:
Forgot to add a UID-Example. In fact it's build like following:
UID:yyyyMMdd-HHmmss-GUID (where GUID is generated by a regular GUID-Class e.g. in C#). In fact it looks like:
UID:20191026-122702-4c48d160-3c71-4c0b-90b1-240bd56a097c (this is my generated UID)
UID:20191019-121235-9d7adac9-8dc4-498e-b15e-03f774f84e41 (this is a google UID)

Hope this helps anyone for finding a working solution :)



Edit2:
I tried some stuff with a friend of mine. We found by reverse engineering, that google only allows alarms, when the uid is already known by google (generated by google itself). In fact that means, that google blocks all "unknown sources" and alarms will not be imported by the google-calender.

There is only one workaround for getting always the same alarm. You can add a "default-alarm" to a specific calendar. However it's not possible to import your own alarms from a self-generated file. The only way you have is importing your own event and after that you can add a alarm by google-calendar.
Sorry for the bad news :(
Last edited Nov 19, 2019
Jan 27, 2020
Did anyone found a solution to solve the problem "google calender ignores VALARM"?

I do not understand the reason or circumstances ... but, luckily I found a threat of someone else (Thx to "Wilhelm Berg"), and within a workaround:  IMPORT the same events TWICE.  At least this was helpful to me. 

Curious to me, it is a workaround discussed in Feb. 2016 :-(!  Maybe our problem is not a problem, but it is working as designed (and less documentated) , and calendar events have to be created first and only in second step options of existing calendar events can added.

Nevertheless, I don't want to adorn myself with borrowed plumes:

HTH, LO
Feb 13, 2020
It's interesting that while importing calendar by file alerts are still there (not ignored) but when trying to import exactly the same calendar by url then alarms are gone.

Same thing seems to happen also on MS Outlook (import from file works but by url don't). Only Apple default Calendar application after subscribing to calendar by url keeps alarms as expected.

Where are from these discrepancies  during different import types come from?
false
15462948673132378801
true
Search Help Center
true
true
true
true
true
88
Search
Clear search
Close search
Main menu
false
false