Post

Replies

Boosts

Views

Created

UIDocumentInteractionController opens documents in ReadOnly mode even with LSSupportsOpeningDocumentsInPlace enable
Our app has Microsoft Word documents which we allow the Word App to "open in place" for editing. Current setup is like this: Info.plist has these flags enabled (set to true/YES): UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace. We save documents from our app in a subfolder of the Documents folder (Environment.SpecialFolder.MyDocuments), which would be located at, for example: /var/mobile/Containers/Data/Application/8A3B2B40-100C-45EF-B9F1-6FBB01D27247/Documents/Notes/4324518a-2f04-4a67-b160-0fb7523ce0ba.docx We use UIDocumentInteractionController to PresentOpenInMenu and allow the user to open the Word document for editing in the Word App On iOS 16 and lower, the Word app is able to read and automatically save changes to the document directly in our app's folder path. However, on iOS 17, using same codebase, Word app can open the document, but the document is in read-only mode, with a message that says "Save a copy to edit". NOTE this works 100% as expected on same version of Word on iOS 16. We've also seen similar reports from other developers using Word and PDF documents. So at this point, we're convinced there should be a change in iOS 17 that impacts this - though we can't see anything along these lines in the docs.
0
1
434
Oct ’23
UIDocumentInteractionController opens documents in ReadOnly mode even with LSSupportsOpeningDocumentsInPlace enabled
Our app has Microsoft Word documents which we allow the Word App to "open in place" for editing. Current setup is like this: Info.plist has these flags enabled (set to true/YES): UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace. We save documents from our app in a subfolder of the Documents folder (Environment.SpecialFolder.MyDocuments), which would be located at, for example: /var/mobile/Containers/Data/Application/8A3B2B40-100C-45EF-B9F1-6FBB01D27247/Documents/Notes/4324518a-2f04-4a67-b160-0fb7523ce0ba.docx We use UIDocumentInteractionController to PresentOpenInMenu and allow the user to open the Word document for editing in the Word App On iOS 16 and lower, the Word app is able to read and automatically save changes to the document directly in our app's folder path. However, on iOS 17, using same codebase, Word app can open the document, but the document is in read-only mode, with a message that says "Save a copy to edit". NOTE this works 100% as expected on same version of Word on iOS 16. We've also seen similar reports from other developers using Word and PDF documents. So at this point, we're convinced there should be a change in iOS 17 that impacts this - though we can't see anything along these lines in the docs.
2
1
453
Oct ’23