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.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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}`)
})
})
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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}`)
})
})
Nice idea, thanks!
Best AnswerHello Jon,
How we can display dynamicaly all sources on the settings page please?
Best regards,
Mike
Best Answer