Is it possible to share a set of parameters and an NSUserDictionary object between applications?

I guess the answer is no, but I decided that I would ask anyway.

Suppose I have a shared library into which several applications are embedded. Now let's say that this shared library provides an API for some web services that use the same username / password for all n applications that use the library.

Is it then possible to set the username / password in one place, for example, the system settings and allow several applications to access the settings, or is NSUserDefaults still completely sandboxed?

This is similar to what the keyring is needed for, but can you use it for arbitrary data or only for authentication data? Can I use a set of parameters to change keychain data shared between applications with the same Apple id prefix?

+4
source share
1 answer

You can store arbitrary data in the keychain, and I swear that I read somewhere applications with the same root package identifier can share the keychain. I can’t find life for me now link.

Perhaps I dreamed it.

EDIT
I'm sure this was in the KeyChain Services document, but all links to it seem to go away.
At that time I thought it was so interesting that I wrote it down:

can use the "package seed identifier" to share keychain access between multiple w applications. single application identifier

What is it. I have not verified this yet, so I'm not sure if this means that you can create and distribute several applications that use the same keychain, or if it just means that consecutive versions of the same application see the same keychain.

I would like to find the source link.

Here's a post from a developer forum that says it's possible.

+2
source

Source: https://habr.com/ru/post/1299252/


All Articles