files-app

How to open native files app in ios?

耗尽温柔 提交于 2021-01-04 07:24:14
问题 How do i open the native files app of ios using url scheme or some other way ? I tried searching url scheme but had no luck. There seems to be no answer to this question there is thread open for this question in apples forum but it is still unanswered. https://forums.developer.apple.com/message/257860#257860 Can it be done using the bundle identifier ? 回答1: Please try to use UIDocumentPickerViewController for your use case let controller = UIDocumentPickerViewController( documentTypes: [

Copy file from iOS 11 Files app to sandbox

≯℡__Kan透↙ 提交于 2019-12-10 10:45:58
问题 I want to copy a file from the iOS 11 Files app to my local app sandbox. For testing purposes it is assumed that the file is locally available in the Files app (downloaded from iCloud to the local storage). The file extension is registered with my app and when a file is pressed in the Files app then my app receives the file URL from the Files app: NSFileCoordinator *fileCoordinator = [[NSFileCoordinator alloc] initWithFilePresenter:nil]; NSURL *nsUrl; // comes from Files app. For instance

Open iOS 11 Files app via URL Scheme or some other way

大兔子大兔子 提交于 2019-12-07 00:52:06
问题 My app is now sharing Documents directory on iOS 11 Files app "On My iPhone" section. (Thanks to this article: Working with the Files App in iOS 11) Question is how to open this directory or at least File app root page via URL Scheme. UIDocumentPickerViewController or UIDocumentBrowserViewController doesn't help in this situation. 回答1: The Files app can be opened with the URL scheme shareddocuments:// . I don’t know if there’s a way to open a specific directory however. 来源: https:/

Copy file from iOS 11 Files app to sandbox

孤街醉人 提交于 2019-12-06 13:29:14
I want to copy a file from the iOS 11 Files app to my local app sandbox. For testing purposes it is assumed that the file is locally available in the Files app (downloaded from iCloud to the local storage). The file extension is registered with my app and when a file is pressed in the Files app then my app receives the file URL from the Files app: NSFileCoordinator *fileCoordinator = [[NSFileCoordinator alloc] initWithFilePresenter:nil]; NSURL *nsUrl; // comes from Files app. For instance "file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/test.rar" NSURL *targetUrl; //

Open iOS 11 Files app via URL Scheme or some other way

早过忘川 提交于 2019-12-05 05:08:39
My app is now sharing Documents directory on iOS 11 Files app "On My iPhone" section. (Thanks to this article: Working with the Files App in iOS 11 ) Question is how to open this directory or at least File app root page via URL Scheme. UIDocumentPickerViewController or UIDocumentBrowserViewController doesn't help in this situation. The Files app can be opened with the URL scheme shareddocuments:// . I don’t know if there’s a way to open a specific directory however. 来源: https://stackoverflow.com/questions/46499842/open-ios-11-files-app-via-url-scheme-or-some-other-way

Import multiple files in app via iOS11 files app

自闭症网瘾萝莉.ら 提交于 2019-12-04 10:19:08
问题 I am trying to import multiple files from the new iOS11 files app into my app. However when I select two or more files (both of the same type, pdf) in the files app then hit the share button and select my app (copy to myApp) the - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options gets called only once and only the first file of my selection gets imported successfully. So I tried if this works in some other apps like

Import multiple files in app via iOS11 files app

断了今生、忘了曾经 提交于 2019-12-03 05:31:27
I am trying to import multiple files from the new iOS11 files app into my app. However when I select two or more files (both of the same type, pdf) in the files app then hit the share button and select my app (copy to myApp) the - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options gets called only once and only the first file of my selection gets imported successfully. So I tried if this works in some other apps like Dropbox or GoogleDrive but it results in the same behavior. If I choose the iOS Mail app or the Gmail