I am familiar with iCloud syncing, but I am new to app groups. There may be a simple answer to this question, but I haven't found it yet. Basically, I have an app in which I have iCloud integration, and now I want to try to add a today extension. I am currently using Core Data as a backend and would like to continue to do so. However, from what I have read, I need to move my data store to a shared location by defining an "App Group". (http://blog.sam-oakley.co.uk/post/92323630293/sharing-core-data-between-app-and-extension-in-ios-8 and Accessing Core Data SQL Database in iOS 8 Extension (Sharing Data Between App and Widget Extension)) I haven't been able to find out if this location is synced using iCloud or not. Or, because I"m using iCloud, do I need an App Group at all? I appreciate any and all help/suggestions.
App Groups and iCloud in iOS
1.6k Views Asked by James At
1
There are 1 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in ICLOUD
- CloudKit: Preventing Duplicate Records
- iCloud Core Data "no document at URL"
- Exchange plist data between 2 iPad using iCloud
- restrict sqlite-wal and sqlite-shm from icloud backup
- Submitting App with CloudKit to App Store is required Demo Account?
- Lost user data with app update using CoreData + iCloud
- iCloud and non-UIDocument files
- How to approve uploads to CloudKit
- Invite attendees for event like Sunrise
- CloudKit as a CMS using a regular web host, not sure where to begin? Is it possible?
- Xcode 6.2 setting iCloud Capabilities error
- Deleting multiple CKRecords at the same time
- iCloud Sync check for duplicates Swift
- Unique identifier associated to the iCloud account
- ios + icloud: com.apple.developer.ubiquity-container-identifiers value not allowed
Related Questions in IOS-APP-GROUP
- Is there way to get list of installed app on device, which is able to share and receive text data
- Errors in the code of word guessing app
- App Group in Today's Extension Swift 3.0
- Possible to share iOS App Groups between an Enterprise team and a standard team?
- Adding App Group Capabilities to iOS app
- App Groups and iCloud in iOS
- Storing bool in shared NSUserDefaults always returns false
- Xcode shows warning after adding App Groups (Add the "App Groups" entitlement to your App ID)
- iPhone and Apple Watch not sharing App Group
- Reading data from Firestore in Swift
- Store an array on the app group for WidgetKit
- iOS Share Extension App Group error passing file URL in react-native
- SwiftUI: How to get path to JSON in app group?
- Several "App Group" Errors when going to Google Maps app from Google Maps iOS SDK but only the first time
- Where is the UserDefaults data stored when sharing it with app and extension?
Related Questions in IOS-EXTENSIONS
- Cocoapods library not found for apple watch extensions
- Synchronize CoreData Context of iOS Widget and containing App
- iOS Share Extension Grabbing URL in Swift
- iOS call extension from my app
- Update UIApplicationShortcutItem from extension
- App icon of Share extension is not updating in device even with updating app icon
- IOS) Photo Extension Unable To Save Changes Issue
- Swift override protocol methods in sub classes
- ios - Handle keychain loss after changing to team id prefix
- Screenshot of contents of Safari from share extension
- Equivalent of UIApplication.shared.preferredContentSizeCategory in app extension
- Open the main app from a iOS Safari Share Extension
- How to communicate between iOS App Containing Extension and Extension (not Host App)
- How can I guarantee unique entries in a Core Data store in a shared app container used by both the host app and an extension?
- Adding App Group Capabilities to iOS app
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you're already using iCloud, you don't need to use app groups, because your extension can access the same iCloud container as your app does. As long as your entitlements and provisioning are configured correctly, you can literally just use the same Core Data stack setup in the extension as in the app.
Apple's Lister demo project does this, but there's nothing special about it. Just use iCloud as usual.
App groups are usually necessary to share data between apps and extensions. But a big exception is when the data is already stored external to the app-- as with iCloud.