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

Question regarding iOS Permission (NSPhotoLibraryUsageDescription) #131

Closed superbybot closed 2 years ago

superbybot commented 2 years ago

Hello,

I have a simple question about the plugin's iOS permission with regards to the photo library. We're using the plugin to share text & url (maybe photo in the future), and we noticed that there is a case wherein the plugin will request for user's read & write access to photo library (NSPhotoLibraryUsageDescription).

Can we ask which method in the plugin triggers this request?

Thanks!

Regards, Byron Bautista

yasirkula commented 2 years ago

NativeShare does modify Photos permission text because otherwise, selecting the "Add to Photos" option in share sheet absurdly crashes the app. The permission isn't asked by Native Share, though. It might automatically be asked when "Add to Photos" option is clicked.

superbybot commented 2 years ago

Thanks for the fast response! We appreciate your help!!