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

how to Share an Existed GIF file using native share. #76

Closed Nameless77 closed 3 years ago

Nameless77 commented 4 years ago

Ok i have a gif file in my storage(i found a method to capture gif files and save it to storage). now my question is that how can i share existing gif file using nativeshare. can you please suggest me.and thank you very much for this asset

yasirkula commented 4 years ago

Assuming that you know the path of the gif file, you can simply use new NativeShare().AddFile(gifFilePath).Share();

Nameless77 commented 4 years ago

thank you so much it worked. by the way i dont know that using this plugin i can share most of the things. thank you very much. and i also have other problem and that is when i share something from my default messaging app(OS Default messaging app) then it showed cannot attach toast message. so i just want to know that is there any problme with my phone or Default messaging app or is there any limitation of plugin(please dont get me wrong). bcz i saw same problem with hill climbing racing's sharing system. when i click on share image with default messaging then i showed me same toast.

yasirkula commented 4 years ago

There might be an issue with the default messaging app but I can't say for sure :/