Use a GIF in MSMessageTemplateLayout

It doesn't seem that the mediaURL allows an animated GIF to play in MSMessages, but the sample #images extension seems to be able to send animated GIFs via images.

Replies

I definitely noticed that as well. Maybe file a Radar pointing this out. The MSMessageTemplateLayout should probably have a MSSticker property as well as the mediaURL.

I can replicate the look of the animated bubbles sent by the #images extension with - (void)insertAttachment:(NSURL *)URL withAlternateFilename:(NSString *)filename completionHandler:(void (^)(NSError *))completionHandler;


But the #images extension issues a line of text underneath that I can't figure out.


As for using MSMessageTemplateLayout, I filed bug 27456667 for this issue with animation not happening. Its status was changed to "Duplicate of 26432360 (Open)." I can't see any info on 26432360 on Open Radar. I didn't see anything about this issue in the Xcode release notes. So frustrating.