incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-844) Contact.find does not return urls
Date Wed, 30 May 2012 22:41:24 GMT

     [ https://issues.apache.org/jira/browse/CB-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simon MacDonald resolved CB-844.
--------------------------------

    Resolution: Fixed

I have checked in a fix for 1.8.0. The contact was being populated with "websites" instead
of "urls". Grrr!
                
> Contact.find does not return urls
> ---------------------------------
>
>                 Key: CB-844
>                 URL: https://issues.apache.org/jira/browse/CB-844
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.7.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 1.8.0
>
>
> I just hit a wall. I have Android project that heavily relies on
> contact api (synchronization of all fields with phone's addressbook).
> It seems that I can't get any urls.
> I have something like this:
> Contacts:
> 1.
> Name: Aaaaaaaaa
> Surname: Rrrrgh
> email: fmc@fmc.fmc
> a photo,
> url: http://example.pl, fmc://fmc.fmc
> 2.
> Name: Mmmm
> url: http://example.pl
> The code:
> navigator.contacts.find(
>            ['*'],
>            function(deviceContacts) {
>                console.log(App.Utils.dump(deviceContacts,5));
> });
> This produces object dump as follows:
> I/Web Console(  536):     '0' ...
> I/Web Console(  536):         'id' => "1"
> I/Web Console(  536):         'rawId' => "1"
> I/Web Console(  536):         'displayName' => "Aaaaaaaaa Rrrrgh"
> I/Web Console(  536):         'name' ...
> I/Web Console(  536):             'middleName' => ""
> I/Web Console(  536):             'familyName' => "Rrrrgh"
> I/Web Console(  536):             'formatted' => " Aaaaaaaaa  Rrrrgh
> "
> I/Web Console(  536):             'givenName' => "Aaaaaaaaa"
> I/Web Console(  536):             'honorificSuffix' => ""
> I/Web Console(  536):             'honorificPrefix' => ""
> I/Web Console(  536):         'nickname' ...
> I/Web Console(  536):         'phoneNumbers' ...
> I/Web Console(  536):         'emails' ...
> I/Web Console(  536):             '0' ...
> I/Web Console(  536):                 'type' => "home"
> I/Web Console(  536):                 'value' => "fmc@fmc.fmc"
> I/Web Console(  536):                 'id' => "5"
> I/Web Console(  536):                 'pref' => "false"
> I/Web Console(  536):         'addresses' ...
> I/Web Console(  536):         'ims' ...
> I/Web Console(  536):         'organizations' ...
> I/Web Console(  536):         'birthday' ...
> I/Web Console(  536):         'note' ...
> I/Web Console(  536):         'photos' ...
> I/Web Console(  536):             '0' ...
> I/Web Console(  536):                 'value' => "content://
> com.android.contacts/contacts/1/photo"
> I/Web Console(  536):                 'type' => "url"
> I/Web Console(  536):                 'id' => "1"
> I/Web Console(  536):                 'pref' => "false"
> I/Web Console(  536):         'categories' ...
> I/Web Console(  536):         'urls' ...
> I/Web Console(  536):         'remove' => "function (successCB,
> errorCB) {
> (...)
> I/Web Console(  536):     '1' ...
> I/Web Console(  536):         'id' => "2"
> I/Web Console(  536):         'rawId' => "2"
> I/Web Console(  536):         'displayName' => "Mmmm"
> I/Web Console(  536):         'name' ...
> I/Web Console(  536):             'formatted' => "Mmmm "
> I/Web Console(  536):             'givenName' => "Mmmm"
> I/Web Console(  536):         'nickname' ...
> I/Web Console(  536):         'phoneNumbers' ...
> I/Web Console(  536):         'emails' ...
> I/Web Console(  536):         'addresses' ...
> I/Web Console(  536):         'ims' ...
> I/Web Console(  536):         'organizations' ...
> I/Web Console(  536):         'birthday' ...
> I/Web Console(  536):         'note' ...
> I/Web Console(  536):         'photos' ...
> I/Web Console(  536):         'categories' ...
> I/Web Console(  536):         'urls' ...
> and nothing here!
> Am I doing something wrong or this is a nasty bug?
> regards,
> Marek

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message