简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM