I haven’t done a development work note in a long time.
I’ve started working on a new feature for Stream that required creating an App Group so I can share data.
I’ve added everything to my new Action Target and I have the code put together using existing classes, it was honestly pretty easy to do.
Now comes the interesting bit. If I understand how an App Group works I am going to have to move my existing database to the group container so the extension will be able to access it?
If that’s not the case I’m sure someone will let me know. 😂
The thing I’ve never tried to do is open a SQLite database from two processes. Does that even work?
If it doesn’t work, things are gonna get very interesting.
I can always create a separate database just for the Action Extension that matches the structure of the main database and have the main app import it at a later time.
I’m hoping I’ll be able to open it from the main app and the extension and have it work as expected, but I’m not holding my breath.