Learn how to share non-keychain data between apps. If needing to share non-keychain data between apps, understanding app groups is important.
- [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 access group … and just use this same text instead …
Author
Released
1/23/2020- Creating keychain queries
- Storing generic passwords
- Retrieving data from the keychain
- Handling search results
- Updating and deleting keychain values
- Working with keychain access groups
Skill Level Advanced
Duration
Views
Related Courses
-
iOS Development: Security
with Károly Nyisztor2h 6m Intermediate -
Biometric Authentication for iOS in Swift
with Bear Cahill43m 54s Intermediate
-
Introduction
-
1. iOS Keychain Services
-
Secure enclave41s
-
Attribute keys and values1m 44s
-
2. Storing Keychain Values
-
Xcode project configuration1m 31s
-
iOS code overview4m 12s
-
Storing a generic password2m 54s
-
Review keychain database2m 6s
-
-
3. Retrieving Data from the Keychain
-
Keychain search concepts4m 36s
-
Keychain search query1m 32s
-
Searching in keychain1m 40s
-
Handling search results3m 24s
-
-
4. Updating and Deleting Keychain Values
-
Update keychain preparation2m 34s
-
-
5. Keychain Sharing
-
Keychain access groups1m 39s
-
Sharing keychain data4m 18s
-
App group data sharing1m 20s
-
Sharing data in app group2m 42s
-
-
6. Building the App Challenges
-
Conclusion
-
Next steps32s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: App group data sharing