Feed not working on Google but working on Apple Calendar
alextoul opened this issue · comments
Alex Toulemonde commented
This subscription feed is working on Apple Calendar but not working on Google Agenda:
https://app.lamainverte.ca/ical/mon-potager-2897.ics
This exact URL is also validated by https://icalendar.org/validator.html
This is the event structure:
function presentTaskIntoIcalEvent(task: any) {
let icalEvent: any = {
title: task.name,
start: convertDateToIcalFormat(task.startDate),
url: task.url,
categories: ['Potager'],
calName: 'Mon potager',
transp: 'TRANSPARENT',
}
if (task.endDate) {
icalEvent['end'] = convertDateToIcalFormat(task.endDate)
} else {
icalEvent['duration'] = { days: 1 }
}
return icalEvent
}
And the array of events is sent to the feed with:
icalRouter.get('/ical/:selectionSlug.ics', async (request, response) => {
const events = getAllEvents()
ics.createEvents(events)
response.setHeader('Content-Type', 'text/calendar')
response.send(icalFeed)
})
Any help would be appreciated. I didn't find any Google-specific fields in the doc.