2

I went through this SO forum and it says to add a header to the .vcs file but when I try to open the .vcs file by clicking on it an Android system popup comes to open the .vcs file and Image, Video, Audio... but it does not added to the local Android Calendar.

Can any one help with this?

Community
  • 1
  • 1
Ankit Tanna
  • 1,779
  • 8
  • 32
  • 59

1 Answers1

3

.vcs is very old for today usage. I recommend you to create newer version .ics file instead of .vcs and try the following;

header("Content-Type: text/Calendar");
header("Content-Disposition: attachment; filename=london2012.ics");

See Difference between iCalendar (.ics) and the vCalendar (.vcs)

trapicki
  • 1,881
  • 1
  • 18
  • 24
Berkay Turancı
  • 3,373
  • 4
  • 32
  • 45
  • Strange, I'm using the php icalcreator class and I'm having this problem as well. I checked the code for the header output and it's as shown above. But on the Android, I only get the generic options described above. – RevNoah Sep 03 '13 at 03:59
  • Doesn't work for me, .ics or .vcs are not handled by default on android however on samsung devices it actually starts the 'S planner' application – vincentp Jul 04 '14 at 12:53