Attaching audio to MSMessageTemplateLayout

Attaching an audio file to MSMessageTemplateLayout's mediaFileURL property appears to still not be working in Beta 7. Has anyone found workarounds for this?

Can you file a bug report with a sample project? Please post the bug number here once you've filed it.

I filed a bug report under #28037859

If you are able to attach a sample project to the bug, that will significantly help in figuring out what's going on. Thanks!

Any updates regarding this subject?

In the documentation it says:


"The media file URL must be a file URL. For video files, the system crops the left and right edges of the media file by 6 points, and rounds its corners. For audio files, it shows a graphical representation of the audio’s waveform."


source: https://developer.apple.com/reference/messages/msmessagetemplatelayout/1648043-mediafileurl


However when I set a mp3 file url I do not see the "graphical representation of the audio’s waveform", In fact I don't see anything at all.

I have a similar issue and opened a bug report, which was marked as a duplicate of 27308860, which is still open. I've seen another person on here commenting that when sending an audio file via MSMessageTemplateLayout's mediaFileURL property that it IS sending the file correctly however the audio seems to be muted by default and tapping on the message opens the Messages drawer. Is there additional handling we need to do in order to get the audio to play when tapping the message? Perhaps trying to add handling for that in the didSelect:message:conversation: method? There is a messages app called Chatterbird currently in the app store that seems to be working to send audio messages and play them on tap. Thank you for any guidance!

Attaching audio to MSMessageTemplateLayout
 
 
Q