RyanP13
RyanP13

Reputation: 7753

Subscription to webcal event in iOS Safari not working but works on OSX

I have exported an event in the .ics format from iCal and linked to the file from an event site i am creating.

When i navigate the link in Chrome on my MacBook it correctly opens iCal and subscribes to the event.

However when i navigate to the same page in iPhone Safari and navigate the link it retrieves an error where it says it cannot subscribe to the calendar.

Am unsure as to why it is working in one and not the other:

http://tfma2012.valtechdigital.co.uk/

The calendar location is as follows:

webcal://tfma2012.valtechdigital.co.uk/calendar/TFMA.ics

Upvotes: 4

Views: 3729

Answers (4)

Sosin Vitalii
Sosin Vitalii

Reputation: 399

Most likely the link is just outdated. Open your calendar, turn off the public link and turn it on, the new address will work 😉

Upvotes: 0

Alex Khimich
Alex Khimich

Reputation: 828

  • If you use http:// so usage of Content-Type: text/calendar HTTP header considered (Not tested) personally You can use same page name with text/html header for desktop browsers to show "how to" manual.
  • If you use webcal:// it is also well supported on iOS, the header must be Content-Type: text/calendar (Tested, works on iOS 13)

You can go even further and show url like webcal://example.com/schedule/?staff_id=1245 encoded in QR code. On camera mode iOS device will suggest you to subscribe to the iCalendar feed.

Upvotes: 0

jpd
jpd

Reputation: 381

Just put this code and check

[[UIApplication sharedApplication]openUrl:[NSUrl urlWithString:[NSString stringWithFormat:@"webcal://tfma2012.valtechdigital.co.uk/calendar/TFMA.ics"];

Upvotes: 0

Carl Goldsmith
Carl Goldsmith

Reputation: 750

Instead of using "webcal://" as the address, simply use "http://"; it worked perfectly for me on both my Mac and iPhone when I tried that.

Upvotes: 3

Related Questions