Does anyone know if the iOS "Files" application data can be accessed via Cordova? I.e., I want to add my application to the list of "Locations" in the Files application, and then read/write those files. Is this possible?
Thanks!
You must set iCloud under Capabilities in Xcode. Don't forget to set the Container for your App Identifier.
Maybe this option will help you in future:
LSSupportsOpeningDocumentsInPlace
I also had this issue and resolved it. Here's what I did: To give the files app access to my app's data, I had to open the info.plist file (just search for "info.plist" in your iOS platform folder) and add the following snippet:
<key>UIFileSharingEnabled</key>
<true/>
Now, when you click on your Ressources > info.plist file in xcode, you should have this entry:
Screenshot Data Access
After building your app to your device, the files app should then give you access to "On My (Device)" and list all folders and files you created using the cordova file plugin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With