Hi,

I've had some trouble with the contacts API. I have an App which
updates google contacts using the Java API. I'm adding an address
using addStructuredPostalAddress. I'm using the setFormattedAddress,
rather than specifying address formats - it appears that this is the
same method as Google Contacts uses.

When my iPhone is updated (push sync, using Microsoft Exchange
Activesync protocol), the postal address for the contact is not
visible. However, if I edit the address using Google Contacts
(webapp), the address becomes visible in the iPhone contact.

I have retreived the record for a contact a) after I've added it with
the contacts API b) after I've modified it in Google Contacts (and it
becomes visible on my phone). The two seem to be virtually identical:

First, as created by API (contact visible on iPhone, but not
address):

<entry>
  <id>http://www.google.com/m8/feeds/contacts/martin%40longhome.co.uk/
base/6d7e0f71887ec454</id>
  <updated>2009-12-09T23:20:04.018Z</updated>
  <category scheme="http://schemas.google.com/g/2005#kind";
term="http://schemas.google.com/contact/2008#contact"; />
  <title type="text">AN Other</title>
  <link rel="http://schemas.google.com/contacts/2008/rel#edit-photo";
type="image/*" href="http://www.google.com/m8/feeds/photos/media/martin
%40longhome.co.uk/6d7e0f71887ec454/1B2M2Y8AsgTpgAmY7PhCfg" />
  <link rel="self" type="application/atom+xml" href="http://
www.google.com/m8/feeds/contacts/martin%40longhome.co.uk/full/6d7e0f71887ec454"
/>
  <link rel="edit" type="application/atom+xml" href="http://
www.google.com/m8/feeds/contacts/martin%40longhome.co.uk/full/6d7e0f71887ec454/1260400804018000"
/>
  <gd:email rel="http://schemas.google.com/g/2005#other";
address="[email protected]" />
  <gd:postalAddress rel="http://schemas.google.com/g/2005#home";>123
Some Road Anotherville Thistown PP11 1AE</gd:postalAddress>
  </entry>

Second, as updated by Google Apps (postal address now visible):

<entry>
  <id>http://www.google.com/m8/feeds/contacts/martin%40longhome.co.uk/
base/6d7e0f71887ec454</id>
  <updated>2009-12-09T23:26:10.887Z</updated>
  <category scheme="http://schemas.google.com/g/2005#kind";
term="http://schemas.google.com/contact/2008#contact"; />
  <title type="text">AN Other</title>
  <link rel="http://schemas.google.com/contacts/2008/rel#edit-photo";
type="image/*" href="http://www.google.com/m8/feeds/photos/media/martin
%40longhome.co.uk/6d7e0f71887ec454/1B2M2Y8AsgTpgAmY7PhCfg" />
  <link rel="self" type="application/atom+xml" href="http://
www.google.com/m8/feeds/contacts/martin%40longhome.co.uk/full/6d7e0f71887ec454"
/>
  <link rel="edit" type="application/atom+xml" href="http://
www.google.com/m8/feeds/contacts/martin%40longhome.co.uk/full/6d7e0f71887ec454/1260401170887000"
/>
  <gd:email rel="http://schemas.google.com/g/2005#other";
address="[email protected]" primary="true" />
  <gd:postalAddress rel="http://schemas.google.com/g/2005#home";>123
Some Road Anotherville Thattown PP11 1AE</gd:postalAddress>
  </entry>

Can anyone help with this... it seems like a bug in the server to me.
I just can't make that postal address visible on the iPhone using the
API.

Thanks

Martin

--

You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en.


Reply via email to