iOS - letting another app edit and save files my app created, in the same folder where the file was opened from

StackOverflow https://stackoverflow.com/questions/20195677

  •  04-08-2022
  •  | 
  •  

Question

I would like to know if it is possible to let another iOS app open a file my app has created and then the other app edits and saves it just in the original location where my app had saved it at creation time. Or, instead, are files opened with the NSUrl in UIApplicationLaunchOptionsURLKey just read-only so they just can be saved in the other app sandbox?

Was it helpful?

Solution

You can't edit other apps sandbox, it's private to your own app (except for the Documents folder, that a user can access from iTunes).

You also don't have access to the file system of the phone.

Welcome to iOS :)

OTHER TIPS

The best way to achieve this is a custom URL scheme. The other option would be iCloud, but I think the URL scheme is the way to go here.

Edit I see the link doesn't work correctly, not sure why, just scroll the page down to the Communicating with Other Apps paragraph.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top