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 app (after hitting share in the files app), all of my selected files are imported (as attachment). So I think there must be a way to achieve this in my own app also.