TiSocial.Framework icon indicating copy to clipboard operation
TiSocial.Framework copied to clipboard

activityView not working with Image Blob from Camera Roll

Open adlk opened this issue 11 years ago • 0 comments

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)
    }
});

adlk avatar Sep 23 '14 12:09 adlk