Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ics file - Cannot open attached .ICS file in iOS7

My app creates an ICS file and send it as attachment to the email as type mimeType:@"text/calendar".

Everything was working perfect in iOS6. If the device has iOS7 the attached .ICS to email does not open.

iOS6 - Opens attached file. iOS7 - Not opening the attached file.

Windows 7 Exchange - Opening the file and works perfect.

Any suggestions?

like image 339
Ram G. Avatar asked Oct 21 '13 23:10

Ram G.


People also ask

How do I open an ICS attachment?

If Outlook is set as your default program for opening ICS files, there's an even easier option. All you need to do is open the file by double-clicking it. The event and the name of the event will automatically be added to your calendar. Alternatively, you can use the "Import/Export" function.

Why I can't open ICS files on my iPhone?

We understand that you are experiencing issues opening an . ics file on Calendar. We recommend updating your iPhone if you haven't. While it isn't inherently assured that an update will resolve the issue, updating to the latest version of iOS for your device can help isolate potential software issues.


2 Answers

Late reply, I know, but try changing the MIME type to

text/v-calendar

Just checked this on an iOS7 device and seems to work

like image 141
Alex Blundell Avatar answered Sep 29 '22 07:09

Alex Blundell


After debug and comparing sample ICS format, I found that iOS7 does not line multiline description part in the ICS file. I have changed the description to just one line (without any new line chars, see below). iOS 7 started recognizing the file and happy to open it. I am still researching how to add multiple lines of description, because it shows in email body of outlook on windows. Weird but at least know what was causing problem.

DESCRIPTION:My Sample Meeting

like image 36
Ram G. Avatar answered Sep 29 '22 05:09

Ram G.