Forum Xamarin.iOS

Share animated gif to social media with UIActivityViewController results in still image

DanManningDanManning USMember ✭✭

I'm trying to share animated gifs in Xamarin.iOS using the UIActivityViewController. Most options on the share screen work correctly, however when sharing to Twitter or Facebook using this method, the animated gif is shared as a still image:

var file = NSFileManager.DefaultManager.Contents(path);
var tempUrl = NSUrl.CreateFileUrl(new string[] { path });
var itemsToShare = new NSObject[] { tempUrl, new NSString(extratxt) };

UIActivityViewController activityViewController = new UIActivityViewController(itemsToShare, null);
activityViewController.ExcludedActivityTypes = new NSString[] { };

viewController.PresentViewController(activityViewController, true, null);


  • JuniorJiangJuniorJiang Member, Xamarin Team Xamurai

    Hi @DanManning , whether the still image appear when it is popping up or after sharing it.It may be a normal phenomenon when popping the window. After sharing, which may be related to some of the requirements shared by Twitter and Facebook.

  • DanManningDanManning USMember ✭✭

    It's displayed as a still image both when popping up the window, and also after it has been shared. There's some stack overflow posts out there that claim tweeting animated gifs used to work on iOS 8 if they were under 100kb, but that didn't work either. I'm assuming there are hidden requirements to sharing on those platform :(

Sign In or Register to comment.