Subscribe to iPhone Siddur Luach Events in iCal
Updated: Please see our new article on how this works over here.
In version 4.0 of the iPhone Siddur we came up with a nifty way to allow people to pull the Luach (calendar events) portion of the Siddur directly into their iPhone calendar.
We noticed that when version 3.0 of the iPhone OS came out, I was able to email links to subscription calendars and they would dynamically show up in my iPhone's calendar. So I quickly subscribed to several web based subscription calendars to get myself in sync. I then thought, hey - can't we publish these iCal files (format for the subscription calendars that work in the iPhone) to the RustyBrick web server and allow people to subscribe to their iPhone Siddur Luach Events in that fashion? So Ronnie coded it and it worked. Apple approved this feature in version 4.0, but when we submitted version 4.1, they took notice to the feature and rejected the new version because of it. I'll discuss that a bit later, first things first.
How to Subscribe to your Luach Events on your Siddur:
- First, this comes in handy when you have added custom events to your luach, so add a few, such as birthdays, deaths, etc.
- Then on the bottom left, there is a button for "Subscription Settings", click on it (picture here)
- You are then taken to a screen asking you to configure your subscription settings. "Enable iCal" must be on, outside of that, most of these questions are self explanatory. See a picture of those settings over here.
- When you are done filling out that form, at the bottom of the form it says, "Push Events to Server Now." What that does is creates an iCal file on the RustyBrick servers, unique to your iPhone. Note, you need internet for that to work.
- Then click "Save" at the top right.
- You should be taken back to the "Luach Events" page. On that page, there is a "Subscribe" button on the bottom right, click it.
- Apple will prompt you with one or two messages, asking are you sure. Say yes to all of them.
- Then your Luach events should show up in your iPhone Calendar.
You can always add/delete/edit your events and the iPhone Calendar will pick up on those changes. Every change pushes an update to our server and every time you load the iPhone Calendar, it looks for that file.
How Do I Delete the Subscription?
- Go to Settings
- Click on "Mail, Contacts, Calendars"
- Locate the "iPhone Luach Events" under the "Accounts" list and click on it (them)
- Click "Delete Account" on the bottom of the "iPhone Luach Events" account.
Like I said above, Apple approved this feature in version 4.0 but then rejected the feature in version 4.1. Why? Apple said that the application was accessing parts of the "iPhoneOS filesystem" and due to the iPhone Developer Program License Agreement in sections 3.3.4 which says "An Application may read data from or write data to an Application's designated container area on the device, except as otherwise specified by Apple," I cannot have this feature. Also iPhone Programming Guide States: "For security reasons, iPhone OS restricts an application (including its preferences and data) to a unique location in the file system. This restriction is part of the security feature known as the application's "sandbox." The sandbox is a set of fine-grained controls limiting an application's access to files, preferences, network resources, hardware, and so on."
Is it possible that Apple doesn't understand that this iCal subscription method does not write anything to the filesystem and does indeed work within the guidelines. All this does is host a file on an external web server and then allows people to access that file, like they would any subscribed calendar, in their iPhone. There is no voodoo here or direct access to the iPhone filesystem. It simply uses the iCal subscription model to give people a way to view (read only) the Luach events in the iPhone Siddur app, within their iPhone Calendar.
Honestly, I am surprised I have not seen more app using this method of viewing app calendar data in the native iPhone calendar.



8 COMMENTS
posted by Ronnie Schwartz on: Aug 26, 2009 01:04am
The truth of the matter is that there are classes that Apple is hiding that allow us to access the ical directly. Unfortunately, I had to use a workaround that is not as intuitive. But it is legit. Apple assumed I used their undocumented classes.
posted by David M on: Aug 30, 2009 07:18pm
Thanks. But how come my subscription to my Luach events works fine on my iphone, and appears in its calendar, BUT when I sync my calendar the Luach events are not synced onwards to my iCal on my Mac?
posted by Barry Schwartz on: Aug 30, 2009 07:40pm
iCal subscriptions simply don't sync that way. Copy the iCal URL from the iPhone to your desktop calendar.
posted by David M on: Aug 31, 2009 04:38am
ok. but where do i find the iCal URL that RB has created specifically for me? thanks.
posted by Barry Schwartz on: Aug 31, 2009 09:49am
Go to Settings Click on "Mail, Contacts, Calendars" Locate the "iPhone Luach Events" under the "Accounts" list and click on it (them)
posted by David M on: Aug 31, 2009 04:55pm
excellent! thanks!
posted by Sam I Am on: Sep 10, 2009 05:12pm
Any idea what is holding up the Siddur approval?
posted by Barry Schwartz on: Sep 10, 2009 05:13pm
Yea, read the content under the last picture. That is why... We submitted a new way to handle ical subs outside of the app, so hopefully this will be approved.