How to create generic ics file which works for gmail, yahoo, outlook and other clients, while send from programming application?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to create generic ics file which works for gmail, yahoo, outlook and other clients, while send from programming application?



I have web application based on django framework. Application creates ICS file by cal python package. We are sending this ICS to differnt clients email ID(gmail, outlook, yahoo etc)



So I am facing problem in below Scenarios



Scenario -
1. Create Event
2. Update all Occurrences or update particular occurrence of event
3. Cancel all Occurrences or cancel particular occurrence of event.



Create -
ICS file is working with Gmail and outlook but not with yahoo when i send this from web application, and if I send the same file from other clients like gmail it creates event in yahoo also.



Update -
Same scenario is applicable for update case. Not working with yahoo.



Cancel -
In cancel case ICS is not working for any client.
I have few point in Cancel file like -
METHOD : CANCEL
UID : Same as sent in create and update case.
Above two are mandatory fields



STATUS, SEQUENCE, RRULE - Is this required?
If SEQUENCE is required then what will be the value of this variable.



Please give your suggestions.





RE SEQUENCE: The spec is fairly clear on when SEQUENCE should be provided and updated and gives some examples, basically 0,1,2 etc. kanzaki.com/docs/ical/sequence.html. This might also help icalevents.com/…. Note when sending ics files by email, what happens with them is at the mercy of the receiving user, their device, the calendar application they are using, whether they choose to import / add the event etc. For some use cases, providing an ics url to subscribe to is better (eg: school calendars vs practioner appts)
– anmari
Aug 5 at 0:16





Thanks anmari, I have increment the SEQUENCE and it worked for me. Now, New ICS is working in Gmail, Yahoo and Outlook if we are deleting all event. If I delete Particular recurrence (pass RECURRENCE-ID;TZID=Asia/Kolkata:20180806T100000 in ICS file) it's working only in Gmail not for yahoo and outlook. Can you suggest something?
– HemendraHada
Aug 5 at 5:30





In response to email I suggested that Hemendra validate the ics files, fixes the errors and add headers of mail contents-type = text/calendar. That has been done, now apparently one the delete of a single instance in a series is not working in Yahoo.
– anmari
Aug 8 at 3:05




1 Answer
1



Summary of Answers:



See also






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard