yasirkula / UnityNativeShare

A Unity plugin to natively share files (images, videos, documents, etc.) and/or plain text on Android & iOS
MIT License
890 stars 131 forks source link

iOS Share video and text at the same time to iMessage #170

Open austinbgames opened 1 year ago

austinbgames commented 1 year ago

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

yasirkula commented 1 year ago

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.

austinbgames commented 1 year ago

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
yasirkula commented 1 year ago

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.