Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed not working on Google but working on Apple Calendar #272

Open
alextoul opened this issue Jan 31, 2024 · 0 comments
Open

Feed not working on Google but working on Apple Calendar #272

alextoul opened this issue Jan 31, 2024 · 0 comments

Comments

@alextoul
Copy link

alextoul commented Jan 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant