Added contact doesn't appear in contactsFeed

14 views
Skip to first unread message

Mike Tomlinson

unread,
Oct 16, 2014, 12:39:02 AM10/16/14
to gdata-objec...@googlegroups.com
I am using the iOS libraries to access the Contact APIs. 

If I use:

- (GDataServiceTicket *)fetchEntryByInsertingEntry:(GDataEntryBase *)entryToInsert
                                        forFeedURL:(NSURL *)feedURL
                                 completionHandler:(void (^)(GDataServiceTicket *ticket, GDataEntryBase *entry, NSError *error))handler;

to insert a new contact, and then from the completionHandler I update the contactsFeed using:

- (GDataServiceTicket *)fetchFeedWithQuery:(GDataQuery *)query
                         completionHandler:(void (^)(GDataServiceTicket *ticket, GDataFeedBase *feed, NSError *error))handler;

the new contact that I just inserted does *not* appear in the list of contacts fetched. 

The new contact is eventually added to my contacts list, as if I wait a while and then perform the fetchFeedWithQuery again, at that time the new contact will be there. 

Is this expected behavior? 

Is there a recommended time to wait after adding a contact before it will be visible to a query? 

Or is there some other API I should call to "sync" the contact info... between inserting and querying? 

What is the recommended way to perform an insert/query? 

Thanks
Mike

Reply all
Reply to author
Forward
0 new messages