From the course: Advanced iOS Development: Keychain Access

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

App group data sharing

App group data sharing - iOS Tutorial

From the course: Advanced iOS Development: Keychain Access

Start my 1-month free trial

App group data sharing

- [Narrator] Another way to share data between apps is by using app groups, so let's look at that. I'm going to go back to my Signing & Capabilities tab and add under Capability, App Groups. Now I was playing around with this before so I already have some default ones. I'm going to add this app to this group.com.somesite.sharing. That one was already defined, but if you want to create a new one, you press the plus button and then you give it a unique name. It has to be unique 'cause that's how it's validated. Now, once you create this, you can share user defaults and you can also share some file storage. It also creates a keychain access group. You don't see it in the list, but you can use the same text without the team ID and use that as your keychain access group when you're storing items and you'd see it in the keychain database, as well. So this one kills two birds with one stone. You could remove this keychain…

Contents