How to programmatically add calendar subscriptions on Android?
Asked Answered
S

1

9

Does anybody happen to know how to subscribe to a server-hosted iCal calendar (such as http://server/filename.ics) from an Android device programmatically?

So far I've seen this is possible manually using calendar.google.com and then go to "Other Calendars", "Add by URL".

On iOS it is possible subscribing to the server-hosted iCal calendar according to: How to programmatically add calendar subscriptions on iOS?

Sissie answered 11/9, 2014 at 7:45 Comment(1)
do you guy have any solution for this problem yet?Emelda
L
0

You can prompt the user to open this link =>

https://calendar.google.com/calendar/u/0/r?cid=CALENDAR_LINK

Where CALENDAR_LINK is the link to your calendar which in your case is http://server/filename.ics

Make sure to replace the http protocol to webcal protocol so google calendar understands it. Another think is to not have any spaces in the provided webcal link

So the whole link should look something like this =>

https://calendar.google.com/calendar/u/0/r?cid=webcal://server/filename.ics
Lepley answered 3/7, 2024 at 15:27 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.