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

iOS: path for sharing #28

Closed iantv closed 5 years ago

iantv commented 5 years ago

Good day. I recently started working on Mac OS to develop app for iOS. I use NativeGallery https://github.com/yasirkula/UnityNativeGallery What path I should use when call Sharing method?

var/mobile/Containers/Data/Application/29582019-F86E-47B4-8A15-21C17940E265/Documents/MyApp/image_1.png is not work.

MyApp - the name of album.

yasirkula commented 5 years ago

You should use the path that NativeGallery returns in its MediaPickCallback. You can verify that the file exists via File.Exists function.