Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
6.4.0
Description
Example: Contact ID 1000 has three photos which are returned in an array in the contacts object. However, all three photo URL's are the same for each of the photos returned.
<code>
var options = new ContactFindOptions();
options.filter = "";
options.multiple = true;
options.hasPhoneNumber = true;
var fields = ["id", "photos"];
navigator.contacts.find(fields, ContactListSuccess, ContactListError, options);
function ContactListSuccess(contacts) {
for (var i = 0; i < contacts.length; i++) {
console.log(contacts[i].id);
for (var j = 0; j < contacts[i].photos.length; j++)
{ console.log(j + " - " + contacts[i].photos[j].value); } }
}
function ContactListError(error) {
console.error(error);
}
</code>