UnityNativeShare icon indicating copy to clipboard operation
UnityNativeShare copied to clipboard

iOS Share video and text at the same time to iMessage

Open austinbgames opened this issue 2 years ago • 3 comments

Currently, I'm trying to set up sharing as a feature within an app. The plugin for the app uses the UIActivityViewController class to share on iOS.

Currently, when attempting to share to iMessage, we are unable to share a video and text at the same time. When sharing a video to the messaging app, the text is never added to the text message. When sharing an image through the messaging app, the text is included.

Is this something that is possible? If not It would be nice to see some official Apple documentation about this. Also, this would be quite surprising considering iMessage is a built-in app, you would imagine it would have this capability.

IMG_4397

IMG_4396

austinbgames avatar Apr 07 '23 23:04 austinbgames

I can't find a documentation for this. But I believe that I'm using the share sheet (UIActivityViewController) properly, I can't see problematic lines in the source code. The UIActivityViewController instance is initialized with a text and a filepath of the video as expected. The reason image sharing works differently might be that images are shared as UIImage rather than a filepath.

yasirkula avatar Apr 08 '23 09:04 yasirkula

If it helps, I've created a sample project to debug the issue: You should be able to create an iOS build to test and reproduce the problem. https://github.com/austinbgames/ShareTesting

Screenshot 2023-04-08 at 12 07 04 PM

austinbgames avatar Apr 08 '23 19:04 austinbgames

Thank you for the repro project. I don't have an iOS workstation but regardless of that, I've deprecated this asset today due to receiving numerous issues similar to this (I don't know the answer to any of these problems so why bother 😞) and will archive the GitHub repository soon, too.

yasirkula avatar Apr 08 '23 19:04 yasirkula