Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
handling sync device limits and calendars?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

handling sync device limits and calendars?



I am developing an application to sync data to Verizon LG phones (not compatible with the iSync phone plugin) and I have some questions.

Some background: I am using an ISyncSessionDriverDataSource to implement the sync. The series of phones have the following limitations:
- Contacts can only have 5 numbers (mobile, mobile 2, home, work, fax), 1 parent group, 2 email addresses, and 1 street address.
- There is only room for 1000 contacts.
- There is not support for multiple calendars.
- Calendar events can only have 1 alarm.
- There is only room for 300 events.

Is there a simple way to communicate these limitations with the sync engine? An earlier version of the code tried to support these limitations by rejecting some records and returning formatted contacts/calendar when phone numbers/events would not be synced. This approach worked with contacts (no non-synced phone numbers did not get deleted) but it caused the sync engine to delete all non-synced events from synced calendars. My client now accepts all records and decides which will be synced to the phone in a delegate method. This new approach seems to work better but has its own set of issues.

I want to be able to have the user select which calendars are synced to the phone and have only the most recent events synced to the phone.

I won't go too much into the details of how this is implemented but it is extremely ugly. I have to search an ISyncRecordSnapshot to get the com.apple.iCal.uid to then ask the calendar store to find the next occurrence of any recurrent events. This is all done in the delegate method (after pull). Is there a way I can use filters to do the same thing? Specifically, I want to get adds/deletes as events fall in and out of the sync list.

I want the software to support (as iSync does) adding new phone events to a user-specified calendar.

I currently use a com.apple.iCal.uid to find the calendar in an ISyncRecordSnapshot and get my client's uuid for the calendar. The problem is sometimes (usually on an initial sync) the snapshot is empty! Could it be that Sync Services has not yet created UUIDs for my client? When does sync services create UUIDs for a client and is there a better way for me to get the correct uuid to return in the event's calendar relation?

Also, NSCalendarDate is obsolete but still appears to be in use by iCal. Is this going to change in the future?

-Nathan
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Syncservices-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
%(user_optionsurl)s

This email sent to %(user_address)s



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.