firescript / nativescript-contacts

A nativescript module that gives access to the native contact directory.
MIT License
28 stars 32 forks source link

plugin doesn't properly retrieve photos on Android #17

Closed abhayastudios closed 7 years ago

abhayastudios commented 7 years ago

For contacts that have a photo defined on Android the plugin doesn't return the URL as expected:

{
  "id": 353,
  "name": { <correct name object> },
  "photo": {
    "android": {}
  }
}

Contacts for which a photo does actually not exist it will return just a null:

{
  "id": 1058,
  "name": { <correct name object> },
  "photo": null,
}
abhayastudios commented 7 years ago

Never mind, I expected to see an URI but after looking at the code I understood it is a NS image-source object.