03-10-2020 19:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-10-2020 19:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm adding calendar support to my watch, and noticed something odd today. There was an event that had "Holi" as the title. Digging in, it came from calendar "US Holidays" that comes from "Subscribed Calendars" source. I don't know where "Subscribed Calendars" is coming from... is there any way to figure that out? There is another source named "Other" that I am not sure about either.
Is there a way to surface the available sources/calendars to the user (through settings or something) and let them pick which ones show up in the watch/app?
Thanks
Answered! Go to the Best Answer.

Accepted Solutions
03-11-2020 14:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-11-2020 14:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Yeah, the Agenda app does this:
Get a list of all calendar sources
Save those to settingsStorage
Let the user select specific calendar IDs and save those to settingsStorage
Filter events by the selected calendars.
calendars
.searchSources()
.then((sources) => {
console.log(`permission -> ${me.permissions.granted('access_calendar')}`);
console.log("received sources")
sources.forEach((source) => {
console.log(`Source with title: ${source.title} and id: ${source.id}`)
})
})
03-11-2020 14:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-11-2020 14:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Yeah, the Agenda app does this:
Get a list of all calendar sources
Save those to settingsStorage
Let the user select specific calendar IDs and save those to settingsStorage
Filter events by the selected calendars.
calendars
.searchSources()
.then((sources) => {
console.log(`permission -> ${me.permissions.granted('access_calendar')}`);
console.log("received sources")
sources.forEach((source) => {
console.log(`Source with title: ${source.title} and id: ${source.id}`)
})
})
03-11-2020 14:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-11-2020 14:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Nice idea, thanks!

07-27-2022 00:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-27-2022 00:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello Jon,
How we can display dynamicaly all sources on the settings page please?
Best regards,
Mike

