videokit-ai / natshare

Cross-platform social sharing for Unity Engine.
https://github.com/natmlx/videokit
Apache License 2.0
134 stars 28 forks source link

NSPhotoLibraryUsageDescription required on iOS 14? #103

Closed sam598 closed 3 years ago

sam598 commented 4 years ago

If all SavePayload is doing is writing to disk, it should only need NSPhotoLibraryAddUsageDescription and not NSPhotoLibraryUsageDescription.

In iOS 14 NSPhotoLibraryUsageDescription asks the user if and how the user wants the app to access their camera roll. This notification is undesirable and may lead to app store rejection.

olokobayusuf commented 3 years ago

You raise a really good point. The only issue is that on older versions of iOS, the NSPhotoLibraryAddUsageDescription was not enough; you also had to specify the NSPhotoLibraryUsageDescription else you'd get a hard crash. So the common denominator here would be to simply specify NSPhotoLibraryUsageDescription and only that. As for the notification, you can disable it. See this article.