Hello,
I am on 2.0.0 ( Didnt upgrade because 2.2.0 is giving me more problems with contacts)
I work on android , IOS and blackberry ,but for this issue Im testing on Android
Anyway , I have managed to save contacts , but I would now like to save photos.
I have the images in the page where you can save the contact , so i have the source/URL of the images.
However , when i try to save the contact I get errors saying the file cannot be found
I have tested it with google's logo and basically its the same with my image , just a different link.
This is part of my code:
var photos = [];
var profilePic;
//profilePic=$("#pageProfile").find(".profileHeader img").attr("src");
var photo = new ContactField();
photo.value=profilePic;
photos[0]=photo;
contact.photos = photos;
And just incase you just say its my code , yes ive tried photos.push(photo) , and I have checked the source of my image , it is correct.
Somehow the error logs are not showing double black slashes for the URL , and YES i have even run a replace method to double the back slashes and its the same.
I have also tried
var photo= new ContactField('url', imageURL,true);
...
I hope you guys can help
Thanks!