Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Display contact photo using cordova + ionic + android

$
0
0

@nelaturuk wrote:

Hi,

Is there anyway to display contact photo. Am struck and not able to move with this. I have tried pulling photos value from (contact.photos[0].value) it displays as : content://com.android.contacts/contacts/16954/photo.

I use the same path like below doesnt display anything on the mobile:
img ng-src="content://com.android.contacts/contacts/16954/photo" style="border:1px solid" width="100" height="100"

I have tried below methods:

  1. adding this in app config $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|content):|data:image\//);

  2. Using window.resolvelocalfilesystemurl.

Even i have tried some pickContact samples from internet like http://www.raymondcamden.com/2014/07/09/Cordova-Plugin-update-and-new-Contacts-demo doesnt work on my mobile. The contact picture doesnt get displayed

Please help. Thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>