So, today, I decided to implement the Sharing extension. Oh boy, did I not expect to lose all of the data but it was necessary. It turns out that if you want to, at a time in the future, to add things to your app, well then you may be in for some effort.
The best resource, hands down was this = Making a Share Extension that accepts text and URLs in combination with CoreData Swift 3. If you don’t want to or don’t have time to learn about Core Data then you can just jump to that website. Follow it. And it will just work.
This way, you can add those things in the future. So just plan for it.
Also, noticed that some tutorials are suggesting to ship the app with things like subscription services and such to be turned on. Just turned on and not active. This way you can add it whenever you want it but you went through review already. Or maybe you just don’t have the time and want to follow good practices. That’s fine too =)
So, I also used the following resources before I found the one above. Here they are:
- App Extension Keys
- Enabling App Sandbox
- Adding Capabilities
- this ANSWER was helpful for - How to access CoreData model in today extension (iOS)
- share coredata between share and app
- Share CoreData between App and Share Extension using Framework
- Initializing the Core Data Stack
Anyways, I am going to spend some time looking at this:
Hopefully someone can find it useful when they are doing this process as well. Maybe I will record it because it is a bit tricky. We’ll see.