Aspiring Developer
Aspiring Developer

Reputation: 313

Contact Sync in iOS App

I'm trying to create iOS contact management and organization app. In that I need a feature where a person in a group can share all contacts of a group to the group members. If group members accept the request, the contacts on that person's get overridden.

As of now, users are storing all their contacts on iCloud. Now I'm looking towards a mechanism to share the contacts to group users. I'm okay to use another option in addition to iCloud for temporary storage. Eg. Parse.

I would like to understand the best possible way of doing this.

Upvotes: 0

Views: 1057

Answers (1)

Fennelouski
Fennelouski

Reputation: 2431

I see three parts to this flow:

  1. Gathering Contacts
  2. Sending Contacts to server
  3. Downloading and integrating contacts

There are plenty of tutorials on how to get contacts in iOS. Do you have the logic on how to organize the contacts into the groups you want?

Parse could be a good solution for your backend. iCloud is great for sharing data between devices for a single user but is rather weak when it comes to sharing between multiple users. You'll need a user registration and identification process as well, and security will be important when dealing with users' personal information. I'd recommend using another authentication service, such as Facebook login, Google OAuth, or IBM Bluemix. In terms of storing data and transmitting it, I'd recommend taking a look at the Parse tutorial for Anypic and work on reconfiguring the general idea to your own needs.

Lastly, you'll need to reverse the first step by downloading the contacts, reading through the users contacts, and then adding in only the new contacts and new data about contacts already on the device.

Upvotes: 1

Related Questions