Missing pop-up reminders in Google Calendar events

I am confused with the interface of Google Calendar v3 . Something seems to have changed.

I have VBA code that creates events and attaches a popup reminder :

If (sEventSettings.bSetReminder) Then Dim oReminders As New Data.Event.RemindersData() Dim oReminder As New Data.EventReminder() Dim listReminders As IList(Of Data.EventReminder) = New List(Of Data.EventReminder)() oReminder.Minutes = sEventSettings.iSetReminderTime oReminder.Method = "popup" listReminders.Add(oReminder) oReminders.UseDefault = False oReminders.Overrides = listReminders oEvent.Reminders = oReminders End If 

He worked for many years. And I could see something like this on the online calendar:

Google popup reminder

Now I use Windows 10 / Microsoft Edge, and I went to see my events, and this is what I see:

Google Notification

He has changed. If I manually set the notification, it will only allow email . What happened to popup reminders?

According to the Google Calendar Documentation, pop-up reminders are still supported. Therefore, I am confused.

Update

If you look at the definition of the EventReminder.Method property:

 Namespace Google.Apis.Calendar.v3.Data Public Class EventReminder Implements IDirectResponseSchema Public Sub New() ' ' Summary: ' The method used by this reminder. Possible values are: - "email" - Reminders ' are sent via email. - "sms" - Reminders are sent via SMS. These are only available ' for Google Apps for Work, Education, and Government customers. Requests to set ' SMS reminders for other account types are ignored. - "popup" - Reminders are ' sent via a UI popup. <JsonProperty("method")> Public Overridable Property Method As String ' ' Summary: ' Number of minutes before the start of the event when the reminder should trigger. ' Valid values are between 0 and 40320 (4 weeks in minutes). <JsonProperty("minutes")> Public Overridable Property Minutes As Integer? ' ' Summary: ' The ETag of the item. Public Overridable Property ETag As String End Class End Namespace 

So, the API expects you to use:

  • Email
  • Popup
  • SMS

However, as we agreed, the Google Calendar in the web browser has now changed, and it no longer displays the Reminders section, but a Notifications . For me, he lists:

  • Email
  • Notification

So it’s still not clear to me how to programmatically create an event in VB.NET with the equivalent of a pop-up reminder.

Help Request

The answer still doesn't help me. You can no longer create a calendar event and set the reminder object method as a pop-up. It seems that I need to use “notifications”, and I cannot figure out how to do this programmatically using the V3 API.

Further research

I manually created a calendar with Google Chrome and added an event . Then I added a notice in 1 day . I exported this calendar in ICS format:

 BEGIN:VEVENT DTSTART:20170420T143000Z DTEND:20170420T153000Z DTSTAMP:20170307T102059Z UID:xxxxxxxxxxxxxxxxxxxxxxxxxxxxx CREATED:20170307T102022Z DESCRIPTION:This is a test LAST-MODIFIED:20170307T102045Z LOCATION:Home SEQUENCE:0 STATUS:CONFIRMED SUMMARY:Test TRANSP:OPAQUE BEGIN:VALARM ACTION:DISPLAY DESCRIPTION:This is an event reminder TRIGGER:-P1D END:VALARM END:VEVENT 

Pay attention to this bit at the end:

 BEGIN:VALARM ACTION:DISPLAY DESCRIPTION:This is an event reminder TRIGGER:-P1D END:VALARM 

According to Wikipedia , it states that events can have multiple VALARM codes.

If I import this ICS file into a new calendar in Microsoft Outlook, it will be correctly installed as one day:

Reminder

However, when I export my events that I have, as I expected, VALARM objects are not present. However, I created them correctly:

 If (sEventSettings.bSetReminder) Then Dim oReminders As New Data.Event.RemindersData() Dim oReminder As New Data.EventReminder() Dim listReminders As IList(Of Data.EventReminder) = New List(Of Data.EventReminder)() oReminder.Minutes = sEventSettings.iSetReminderTime oReminder.Method = "popup" listReminders.Add(oReminder) oReminders.UseDefault = False oReminders.Overrides = listReminders oEvent.Reminders = oReminders End If 

They are not respected by the Google Calendar V3 API . I think the problem here is that the function is broken. They then renamed it from the popup into a notification and did not update the support for creating events using these popup alerts. I use the latest package manager downloads. I raised an issue about this a few days ago with Google.

I do not think that this is a mistake on my part. Given the silence from the user base, I came to the conclusion that no one uses the API to create events and set reminders. Or, that there may be other users who have now affected the code and are not aware of this problem.

But if you know about this and can replicate my problem / or know a pragmatic resolution, please let me know. Thanks.

+5
source share
2 answers

Oh dear, because all this time I have to eat a modest cake ... :)

My event in my code was wrapped with an if clause, and it should be:

 If (strEventType = kTagAssignmentsMSA Or strEventType = kTagMidweekMeetingCLM) Then 

It was installed on an obsolete tag that I no longer used, and I did not update my code. Therefore, he never created a reminder of the event.

I feel bad. The problem is solved. There were no problems.

+2
source

You can also install Notification . This is the same function as the tooltip.

enter image description here

In addition, based on this support page , you need to open Google Calendar in your browser to receive notifications on your computer.

0
source

Source: https://habr.com/ru/post/1264163/


All Articles