Reputation: 5247
I built a HTTP request handler that outputs events in icalendar format. By default, I output events for the next 6 months, but that's completely arbitrary.
What I want to know is what date range should I use to output events for the icalendar subscription feed? On devices that support icalendar subscriptions, is a date range included in the request? That would be awesome. Otherwise, how do I know what date range is being requested by the client? Is there some sort of standard for this?
Ideally, I want to open my iphone, go to the calendar, and start navigating through the months, and see any event on the calendar, no matter how far in the future it is.
Thanks in advance.
Upvotes: 1
Views: 183
Reputation: 5247
In my testing, the iOS calendar app does not request date ranges. So my script outputs all events that occur from the time of the request through the 365 days.
Upvotes: 1
Reputation: 14446
Check what the HTTP request the phone is sending looks like. (Store it into a text file each time it gets a request.) If the phone is asking for date ranges (which I'd expect it would) there's your answer. If it's not... try just sending the whole calendar! iCalendar entries are around 250 bytes each, so you could send ten thousand events (or five events per day for the next five years) in 2.5 MB, or about 8 seconds on a typical 3G connection.
Upvotes: 0