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

Instagram sharing fails #34

Closed olokobayusuf closed 6 years ago

olokobayusuf commented 6 years ago
[default] [ERROR] Could not create a bookmark: Error Domain=NSFileProviderInternalErrorDomain Code=1 "The reader is not permitted to access the URL." UserInfo={NSLocalizedDescription=The reader is not permitted to access the URL.}
[default] [ERROR] Failed to determine whether URL /var/mobile/Containers/Data/Application/XXXXXX/Documents/recording_2018_10_10_16_04_13_208.mov (n) is managed by a file provider
olokobayusuf commented 6 years ago

Apparently, the fix is to specify the UISupportsDocumentBrowser key in Info.plist as YES.

olokobayusuf commented 6 years ago

Apparently fixed (ugur on Unity Forums):

somehow now the sharing to instagram works fine on iOS, too for me (when not supplying a default text) The only thing i changed (i'm aware of) compared to when it was not working is that i now crop the video to be 4:3 dimensions. (so not sure if video dimensions or filesize or memory usage was the culprit or something else i'm not aware of) Now when i select instagram in the sharesheet the instagram share panel doesn't go away by itself anymore and i can share fine =)