eni9889 / ppsideloader

533 stars 130 forks source link

[Suggestion] iOS 11 - Files App availability #258

Closed Platypus2 closed 5 years ago

Platypus2 commented 7 years ago

At some point between now and iOS 11 being released, I think it would be a good idea to update the script to include the UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace keys in the Info.plist of at least the ++ apps (if they do not already exist for the app). This allows the new iOS 11 Files app, and hence any other app, to access the ++ apps documents folder. For example, in the case of YouTube++, this would allow other apps to access the downloads, as well as the user being able to see the downloads through the Files app.

I have tested this myself and it works well. Refer to the Apple documentation for more information:

To give other apps access to the files in your Documents directory, just set the proper keys in your app's Info.plist file. You can either set the UISupportsDocumentBrowser key (for document browser-based apps), or set both the UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace keys.

These keys enable other apps to open and edit the contents of your Documents directory in place. Your files also appear in both the Files app and the document browser. For more information, see the UIDocumentBrowserViewController class.

https://developer.apple.com/documentation/fileprovider