swiftcydia-substrate

Cannot Find Private URL For Opening Files App From Within Another App On iOS


I need to open up the Files app from within my app. This is an internal application not going on the app store so I'm not worried about trying to use private URLs.

I've tried

"App-Prefs:root=files"
"App-Prefs:root=FILES"
"App-Prefs:root=Files"

in

let url = URL.init(string: "App-Prefs:root=Files")!
UIApplication.shared.open(url, options: [:]) { (Bool) in
    print("opened")
}

Depending on the string it will either not open anything or open the settings application.


Solution

  • According to this thread, you can use shareddocuments:// as the URLScheme to open the Files app. You can read more about how to use URLSchemes in this document in the section called Using URL Schemes to Communicate with Apps.