dickyj
dickyj

Reputation: 1870

Using realm for app and share extension in ios swift?

I noticed that in this link: https://realm.io/news/thomas-goyne-fast-inter-process-communication/

It states that inter process communication is supported in realm. Does that mean I will have no problem opening the database in both an app and its share extension in ios. If so, for the realm object class, do I need to put them in some framework or can I just duplicate the class in both the app and app extension just for simplicity?

Upvotes: 2

Views: 2139

Answers (1)

jpsim
jpsim

Reputation: 14409

It states that inter process communication is supported in realm.

That's correct!

Does that mean I will have no problem opening the database in both an app and its share extension in ios.

That's the plan!

If so, for the realm object class, do I need to put them in some framework or can I just duplicate the class in both the app and app extension just for simplicity?

Either approach is fine.


We have very little docs on inter-process Realm access because by design, it should "just work", but the fact that the blog article you linked to is the only place where Realm states that multiprocess access is supported is laughable, which is why we have #3362 tracking improving our docs on the subject.

Upvotes: 4

Related Questions