1

I need to create an integration between my app and apps by another developer. There are several ways to store data for an app, some that allow only your app to access it, some that allow other apps by the same developer to access it. But is there an iOS API that allows you store data publicly on the device so that any other app can access it? This data is not secure and cannot be used maliciously.

shim
  • 9,289
  • 12
  • 69
  • 108
lvoelk
  • 2,390
  • 1
  • 12
  • 16
  • 1
    There is no way to share data between developers directly on the device. Your options are to store the data on the network somewhere or use URLs to pass the data between apps – Paulw11 Sep 21 '19 at 20:29
  • If you can coordinate with the other developer you can use the iCloud to share data. If the two apps have the same iCloud identifier in their entitlements they can write/read files in the same space. Btw this question has been asked again you can see relevant and more complete answers here https://stackoverflow.com/questions/8882682/sharing-icloud-data-between-two-apps and here https://stackoverflow.com/questions/8882682/sharing-icloud-data-between-two-apps – Christos Koninis Sep 22 '19 at 06:43

2 Answers2

1

May not work for your specific needs, but note you can share documents between apps using UISupportsDocumentBrowser. See also here.

UISupportsDocumentBrowser (Boolean - iOS) Specifies that the app is a document-based app and uses the UIDocumentBrowserViewController class.

If this key is set to YES, the user can set the document browser’s default save location in Settings. Additionally, the local file provider grants access to all the documents in the app’s Documents directory. These documents appear in the Files app, and in a Document Browser. Users can open and edit these document in place.

This key is supported in iOS 11 and later.

Community
  • 1
  • 1
shim
  • 9,289
  • 12
  • 69
  • 108
-1

This would violate iOS security policies and is therefore not possible on device. The only way to enable this is on a jailbroken device.