Opening AirDropped files in 3rd party apps in iOS 17

Since updating to iOS 17 there doesn't seem to be a way to automatically open files AirDropped into any applications. The files get downloaded to the Files application and you can open them from there, but previously you could open them straight in another application. There doesn't seem to be any documentation to this change.

Is there still a way to open AirDropped files directly in a non-Apple published application?

Answered by DTS Engineer in 767265022

On iOS 17, the behavior of saving an AirDropped file to the Downloads folder (and then launching Files.app) is intended. That is part of the effort to avoid directly passing a file to an app that declares itself as a handler of the file type but isn’t really the file handler that the user expects. If you have feedback on the behavior change on iOS 17, feel free to file your feedback report <http://developer.apple.com/bug-reporting/>.

The same behaviour. Didn't find the solution yet.

Same issue. Experimented with CFBundleDocumentTypes, UTExportedTypeDeclarations, UTImportedTypeDeclarations, UIFileSharingEnabled, LSSupportsOpeningDocumentsInPlace with no success. Seems to be a bug in iOS 17, and it still persists in Beta 17.1 (21B5045h).

On iOS 17, the behavior of saving an AirDropped file to the Downloads folder (and then launching Files.app) is intended. That is part of the effort to avoid directly passing a file to an app that declares itself as a handler of the file type but isn’t really the file handler that the user expects. If you have feedback on the behavior change on iOS 17, feel free to file your feedback report <http://developer.apple.com/bug-reporting/>.

Poor choice in the intentional change. It made AirDrop far less user friendly. I would air drop a .pdf and it would at least prompt me to select an App like iAnnotate. This only added extra steps to my workflow. I get not allowing direct app selection without a prompt to select a specific app but forcing it to files only was a poor change.

I wonder if this restriction applied only to Airdropped files, or to any custom file types? I noticed that my app's custom file type wouldn't open in the app automatically by the click on it in Files app even if I moved that file to the Files app manually, not via Airdrop. Though other file types (eq. .epub, .fb2) continue to open in their corresponding apps. Do I need to provide some additional setup to custom file type? Now I have the same custom type registered in both DocumentTypes and Exported Type Identifiers on my target's Info tab, and it opened in the app before iOS 17.

This change has made Airdrop extremely unfriendly. Can we please revert back to getting a prompt and being able to open the files directly in the app instead of it going to files?

Hello,

we are experiencing the same problem. iOS 17 / 17.1.x. We set both the UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace toggles in Info.plist, as well as the UISupportsDocumentBrowser toggle. Before iOS 17 we were able to edit files in an external app without problem (e.g. Excel files in the MS Excel App), since iOS 17 we are not.

We have found the following threads that describe the same or at least a similar problem, all have no solution so far:

https://developer.apple.com/forums/thread/740777

https://stackoverflow.com/questions/77221895/ios-17-airdropped-file-not-opening-in-our-app-and-instead-opening-in-files-app

https://stackoverflow.com/questions/77393746/xamarin-ios-with-ios-17-opens-word-documents-in-read-only

A quick fix would be greatly appreciated, our cutomers depend on this feature.

This is a substantial regression in terms of UX. Having a dialog asking users "Do you really want to open this file with app XY?" would be much better.

Seriously, is this not getting reverted? How many users have to come **** up your dev thread before someone pays attention?

Seriously, is this not getting reverted? How many users have to come spamming your dev thread before someone pays attention?

I AGREE!! PLEASE CHANGE IT BACK OR GIVE US THE OPTION!! I HATE THE FILES APP!!

Why try to fix something thats not broken 😭 This adds so many extra steps and adds files to the Files app that i dont want, so i have to go back and delete them. Why not give an option to chose where I want to open the file? That was really the best way to go about this

This is a horrible change. This adds an extra step and guarantees that users will get duplicates of their files everywhere

I'm running 17.3.1 on iPad

AirDrop automatically sends a text file to my OpenOffice App.

I would like to change this to another app but don't know how. Reading here, others may be interested that this version, in one instance, performs like the old version. Albeit unable to alter the behavior. Not recognizing the supposed "design intent".

Further, my desired app is not accessible from the Files app. Thus, unable to open the file as desired... period.

You can do this,I tried it and it's okay:

        **url.startAccessingSecurityScopedResource()**
        

        do {
            let fileData = try Data(contentsOf: selectedFileURL)
            let fileContent = String(data: fileData, encoding: .utf8)
        } catch {
            print( error)
        }
        
        // 停止访问文件
        **url.stopAccessingSecurityScopedResource()**

The key code is represented in bold font. OR use UIDocumentPickerViewController to access file,Also, bold code should be added

Opening AirDropped files in 3rd party apps in iOS 17
 
 
Q