Reputation: 438
I am trying to create a calendar export for my sports organization. I get the data from an external API (the match dates change sometimes) and format it to form .ics files. I got a .ics feed up and running so that is not a problem since I can manually sync it via google calendar and outlook.
The thing I am trying to find is a way to automatically have it added to the users' calendar via for example the google Calendar API or outlook calendar API or even using the webcal protocol to get a prompt on the users' phone/computer to add it to their calendar app. But it also seems like that is not supported on android phones?
The api's also don't seem to have this support, both google and outlook only provide a way to add a calender by supplying a name for it in the request body. ref: google, outlook
I hope someone can get me through this or provide another alternative. Thanks in advance!
EDIT: I found in this post that I can directly link users to the webcal link and this works, but it opens a browser the google calendar instead of the app, is there a workaround for this?
Upvotes: 0
Views: 1153
Reputation: 2426
I think the best approach would be to manually import the ics file into the Google Calendar of a specific Google account and then use the API with the events: list
method to list all the events created by that file and retrieve their eventId
parameter, then use it along with the calendarId
parameter to update each event and automatically invite the users to all the events.
Since you mentioned that the dates of the events can change sometimes, with this method you will make sure that all the invited users get notifications whenever there is an update so they don't miss any changes.
Upvotes: 1