TiSocial.Framework
TiSocial.Framework copied to clipboard
activityView not working with Image Blob from Camera Roll
I'm using the activityView to share a picture from various sources:
- remote url
- camera roll
- camera
When I'm using the remote image as a source to share it on facebook/twitter or by email it works perfectly. But whenever I take a new photo or select one from my camera roll the image parameter is ignored.
Ti.Media.openPhotoGallery({
mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],
allowEditing: true,
success: function(response) {
Social.activityView({
text: "text",
image: response.media, // type is Ti.Blob
removeIcons:"print"
});
},
error: function(response) {
Ti.API.log(response)
}
});