michael’s thoughts

collected

iPhone 3G Sync with Google Contacts

I’ve been through a number of cell phones in the past few months, and when my most recent Motorola RAZR gave up the ghost earlier this week, I decided it was time to move on to something different. That something different is the iPhone 3G.

There’s a lot to say about the iPhone. It really is a fantastic piece of communications equipment. I’ve had Blackberrys, I’ve used Windows Mobile phones. But the iPhone really is something else entirely. It’s in a class of its own.

However, I was having problems getting my Google Contacts to sync properly. After much fruitless searching online and bashing my head against the wall, I’ve solved the problem so I thought I would share it publicly in case others have similar issues.

With the latest release of iTunes, it’s possible to sync the iPhone with Google Contacts. As many others have noted, you cannot specify a specific set of contacts – it’s all or nothing. But that didn’t bother me. I have not used Google contacts before, so I set about cleaning up and organizing all of the contacts in my Google account and adding in entries for everyone I had on my previous cell phone. Luckily I had made a back up in Mobile Phone Tools, but it was a bit of tedious copying and pasting into Google.

I did my first sync and everything seemed to work as expected. I tried updating some contacts in Google and sure enough, they synched to the iPhone. However, when I would edit certain contacts on the iPhone the changes would not sync back to Google. I searched all of the iPhone forums, the Apple support site, reviewed the Apple Knowledge Base, but all to no avail. My contacts seemed to be syncing in only one direction.

It turns out that the reason for this is that Google uses the e-mail address as the primary key for its database. So it determines that a contact has changed based upon the e-mail address. Unfortunately I didn’t have e-mail addresses entered for many of my previous cell phone contacts. Either I didn’t have their e-mail address, or in many cases I did have it but I had neglected to enter it into the Google Contacts system.

For those contacts where I did have their e-mail address, I went back into Google and updated the contacts to include an e-mail address. After doing this, my sync is working as expected bidirectionally. For those contacts who do not have e-mail addresses, I’ll just have to keep on top of the changes manually and review my Google Contacts list to ensure that changes are updating appropriately and that I am not creating duplicate entries in my syncing. Since the number of people who I know without e-mail addresses is fairly low, that does not pose a major inconvenience for me.

The moral of the story is: whatever other information you enter into Google Contacts about a person, don’t leave out their e-mail address!

  • Craig Sanders
    This explains what was happening for me, thank you. I'm going to fill in the email field with a bogus and obvious placeholder address just so that Google Contacts functions right with the iPhone. This will also let me assign photos to those contacts in Google, which can't be done when they don't have an email address. Now if we could only get those pix to transfer to iPhone.
  • Roland
    Very nice find. Thank you very much. I was wondering what was going on as some of my contacts seemed to update FROM my iPhone, while others did not.
  • Many thanks for this information, it works perfectly
  • Sonia
    Strong work! Thanks so much....it worked great. I just created dummy addresses and it synced perfectly with Google contacts. Now if I could only find something that would let me choose the groups to sync with instead of all of them!
  • Yeah, that would be nice! I looked into that, but there doesn't seem to be a reasonable way to do it. It could be possible to access the groups using the Google Contacts API, however there's no way to sync that into the iPhone contact list.

    It would be nice if the iPhone SDK would allow access to the phone contacts, as then you could create a web service that would sync Google Contact Groups and even do it over the air. But, with the current iPhone SDK/API that's not possible.

    -m
  • Owen Cooper
    Check out the app Sync in a Blink on the AppStore. It's a lot better than the iTunes sync. It handles two way sync properly (without the email problem) and lets you sync over the air.
  • Owen-

    Thanks for the comment. I installed the application and it rocks. I've written up my thoughts here.

    -m
  • Graham
    Perhaps a good idea to put a fake (unique) email address for each contact without an email adress. For example, my grandmother (let's say her name is Jane Doe) is never going to get an email address and I'm never actually going to want to send her an email but I might want to update her details on my iphone and have them sync back.
    Based on this it would be a good idea to create a fake email address for her to allow the syncing to work. Maybe something like jane.doe@fake.email.com.

    I haven't tried this as yet although I was wondering why some syncs weren't happening in both directions so I'm now going to work through my contacts and do this to see what happens.
  • You can definitely do it that way. But I would suggest using Sync in a Blink instead. It rocks! And then you don't have to bother with that at all. For more information see here.

    -m
blog comments powered by Disqus