yasirkula / UnityNativeShare

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

Can´t share wav file to whatsapp from an ios device. #83

Closed gonzadavidov closed 3 years ago

gonzadavidov commented 3 years ago

Hey there @yasirkula, I am trying to share a wav file from my app using your asset, everything works fine from an anndroid device and also sharing via email from my IOS device. The issue comes when I try to share the file to whatsapp on IOS, the option appears and the text is sent but the file isn´t. Thanks for your help.

yasirkula commented 3 years ago

What happens when you don't call SetText?

gonzadavidov commented 3 years ago

Thanks, It works fine!!! so now, how can I share the file with the text also? at least in separate messages.

gonzadavidov commented 3 years ago

Is there a way to send the file with the text when sharing via email for example but only the file via WhatsApp?

yasirkula commented 3 years ago

I didn't add any app-specific logic. If you are interested in modifying the iOS source code for this task, I believe this pull request's NativeShare.mm file executes some app-specific logic.

gonzadavidov commented 3 years ago

Okay, Thank you very much.