I'm trying to share a gif from my (unity) app, through the standard iOS sharing screen, to a social network.
Because of this question I first wrap the path to the gif in an NSURL before sending it to the UIActivityViewController:
NSURL *nsGifURL = [NSURL fileURLWithPath:nsGifPath];
NSArray *itemsToShare = @[nsMessage, nsGifURL];
// find the unity window:
UIWindow *window = [UIApplication sharedApplication].keyWindow;
UIActivityViewController *share = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare applicationActivities:nil];
[window.rootViewController presentViewController:share animated:YES completion:nil];
This all compiles and runs without errors, but when I reach the other app, the image is static and not a gif.
How do I make apps like fb accept and display a gif on the other end?
EDIT: the nsGifPath definitely has the .gif extension