For my recent Titanium Mobile project I need the ability to programmatically add events to calendars on the devices for both Android and iOS.
While Titanium Mobile SDK currently provides this functionality for Android, it’s currently not supported on iOS.
There are a few Titanium Modules on GitHub trying to provide this functionality, but most of them seem a bit outdated and not maintained.
So I decided to build my own calendar module for iOS, which will hopefully eventually support most of EventKit and EventKitUI functionality, but for now it allows you to easily add events to the user’s default calendar on iOS devices by using the built-in edit event dialog.
I’m also trying to make sure it doesn’t break applications wanting to run on older iOS versions (since EventKit is only available on iOS 4 and newer), so if anyone can test this on a 3.x iOS, I would really appreciate some feedback.
I plan on releasing the source on GitHub (after I’m done with my current project), but for now you can grab it here:
- Download the module package:http://projects.goranskledar.com/calendar/com.gs.calendar-ios.v0.1.zip
- Installation and usage instructions: http://projects.goranskledar.com/calendar/index.html
- Example app.js code: https://gist.github.com/1189932
Please consider this beta quality (although I’ll be using it in a production app). If you have any feedback, issues or questions, drop me a line or message me on Twitter.