The iOS App Group Container is a protected folder for sharing content with trusted apps. The most common use it to exchange information between the main App and a shared extension.
Questions tagged [ios-app-group]
232 questions
1
vote
1 answer
iOS app groups not making sense
I must have misunderstood something very basic regarding iOS App groups somewhere. Please help me getmy head around it. :-)
As I understand iOS App Groups they can be used for two (or more) apps to share some data, such as files or user…

Jonas Rembratt
- 1,550
- 3
- 17
- 39
1
vote
1 answer
Can we access keychain items that are saved before enabling keychain sharing from app sharing same app group?
Can we access keychain items that are saved before enabling keychain sharing from app sharing same app group? If NO then what could be the best workaround?

Muhammad Adil
- 300
- 2
- 10
1
vote
0 answers
How can I access realm data saved on iPhone from Apple Watch
I saved some data with Realm on my iPhone, and in AppDelegate, I wrote
var config = Realm.Configuration()
let container = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.XXXXXXXX")
let realmUrl…
1
vote
0 answers
Reading/Writing data that is accessible from iOS app extension
I'm working on an iOS Content Blocker, but I would like to have the user choose what lists they want to block (ads, tracks, adult sites etc.). I found that the app extension and the containing app's bundles are separate and have no access to each…

spearman008
- 87
- 1
- 8
1
vote
1 answer
Shared Core Data - What am I missing?
I have an app with a Today extension. Using App Groups, I am able to have a single repository for both the app and the extension. However, I must be missing something as the solution only partially works. If I am in the App I can add a record and…

Chazman
- 89
- 1
- 8
1
vote
0 answers
How can I share a struct array between an app and iMessage Extension in Swift 3?
I am facing a weird issue when sharing a struct array between an app and iMessage Extension.
Here is my code.
struct RecentlyUsed {
var isPreset: Bool?
var imgId: Int?
}
extension RecentlyUsed {
init?(data: NSData) {
if let…

Eric Chan
- 1,192
- 4
- 16
- 30
1
vote
1 answer
iOS Keyboard Extension(App Groups)
i have a question about Keyboard Extension.
Container app has many images.(ex > 100 images and total 100MB)
and container app has saved using NSUserDefaults.
like this:
NSMutableArray* arr = [NSMutableArray new];
for(NSInteger i = 0; i < 100;…

dh0rmfpdlxm
- 301
- 1
- 3
- 16
1
vote
1 answer
Possible to share iOS App Groups between an Enterprise team and a standard team?
Apple offers a few different account types. Standard at $100/year and Enterprise at $300 /year.
I have both, and want to share information between the deployed apps, perhaps using App Groups.
Is this possible in iOS ?

makerofthings7
- 60,103
- 53
- 215
- 448
1
vote
1 answer
Error in the output of the following SWIFT program
I have checked my code thrice and not able to find any error in it but my output is showing me the wrong answer. The code is of the simple adding game tester.
import UIKit
class ViewController: UIViewController {
var score = 0
var…

Yashwin Munsadwala
- 474
- 7
- 11
1
vote
1 answer
How to register Settings.bundle keys on shared defaults
I am trying to link settings properties with the app. I managed to do it using standardUserDefaults. The problem is that my app have and extension and I need to use Shared Defaults with a SuiteName.
Although I use the same register method on shared…

CRoig
- 691
- 5
- 24
1
vote
1 answer
WatchKit: Swift - How can I get and put data in my sqlite database that resides in my iPhone App documents folder
I have an iOS app that uses an SQLite database. This works very good.
Now I added a WatchKit App Extension and would like to connect to that existing database which resides in the Documents folder of my iPhone app.
Can someone please show me how to…

Jurgen Dictus
- 346
- 3
- 15
1
vote
1 answer
How to add a UIView which is created in storyboard as a pop-up in Swift?
I did the following:
1. Dragged UIView to place it in the ViewController ribbon
Created a custom UIView class and added the outlets to the 'Edit Profile View' view fields:
import UIKit
class EditProfileView: UIView {
let globalDataHandler =…

Shashank
- 31
- 4
1
vote
1 answer
Remove information stored in App Groups
I am having trouble removing information when a user logs out of my application since adding in the app group.
This is the code I am trying to use for it.
let appDomain = NSBundle.mainBundle().bundleIdentifier
let prefs = NSUserDefaults(suiteName:…

onemillion
- 682
- 5
- 19
1
vote
1 answer
Realm, Configuration and app groups
I'd like to use Realm with app groups to be able to share data with watch extension. I'm facing problem, that when I try to configure default realm.. By that I mean that I create new path and then I create new configuration. So far so good, but when…

Lachtan
- 4,803
- 6
- 28
- 34
1
vote
1 answer
Something like shared NSUserDefaults and App Groups in watchOS 2?
I am currently updating an app of mine for watchOS 2 and got some trouble with communication between the devices: previously I had been using shared NSUserDefaults to enable both the Watch and the iOS device to read and write several values from one…

MrASquare
- 129
- 8