Questions tagged [ios-app-group]

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.

232 questions
6
votes
1 answer

What's the difference between Keychain and App group in iOS

As you know that when we share data between two apps in iOS, we can use keychain. And iOS8 later, we can also use app groups to implement the same function; My question is what's the difference between keychain and app groups, which one will be…
henry
  • 93
  • 1
  • 6
5
votes
0 answers

How to Migrate Core Data's Data to App Group's Data

I just added App Groups to my app using this StackOverFlow post. Unfortunately since the defaultDirectoryURL is changing, I can not fetch any of the old data I made before using the App Groups directory. I know the data is still there because when I…
ap123
  • 916
  • 1
  • 8
  • 22
5
votes
1 answer

Sharing database between multiple swift apps

I need to be able to have 3 swift apps which can communicate with each other. Think of app 1 as a base app which communicates with a server and stores info in a local DB and app 2 and 3 need to read (and POSSIBLY write) to that DB created in app…
user2363025
  • 6,365
  • 19
  • 48
  • 89
5
votes
2 answers

Why doesn't NSUserDefaults work between my app & share extension?

I have an iOS app with a share extension. I am trying to share data between them using NSUserDefaults and App Groups but, while I can write into the NSUD object, read it, and synchronize() without error, reading in the extension always results in…
Drew Stephens
  • 17,207
  • 15
  • 66
  • 82
5
votes
3 answers

Should macOS App Group name start with `group.` or Development Team ID?

When I'm trying to upload my app to the Mac App Store, I get the error - iTunes Store operation failed. Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on Mac OS X.…
Witterquick
  • 6,048
  • 3
  • 26
  • 50
5
votes
1 answer

Removing App doesn't remove App Group data

Ever since I started using App Groups to share Core Data between my App and a Today Extension/Widget I am having an issue. When I delete my app the core data maintains on the device, instead of being deleted like it used to. I am aware this question…
Black Magic
  • 2,706
  • 5
  • 35
  • 58
5
votes
1 answer

What is the maximum storage limit for app group containers shared between an iOS app and its extensions

I have created WatchKit extension for my app. Both share a common app group container to store and fetch data files. What is maximum storage limit for that app group container shared between my app and its extensions?
Kalai_Human
  • 135
  • 7
5
votes
3 answers

Is NSUserDefaults thread safe for sharing data between extensions on IOS?

The documentation for App Extension under "Sharing Data with Your Containing App" uses NSUserDefaults to do so, and write a bit further that "to avoid data corruption, you must synchronize data accesses. Use Core Data, SQLite, or >Posix locks to…
user2962499
  • 486
  • 6
  • 10
5
votes
1 answer

How to obtain NSManagedObjectContext instance from Extension iOS 8

I create keyboard extension, and in need to get access to CoreData. It works well from container app AppDelegate. But from extension I can't gain access to data. First of all I need instance of NSManagedObjectContext, which I don't have. So how can…
Vitaliy L
  • 572
  • 4
  • 20
5
votes
3 answers

NSUserDefault can't save & load in Extension in iOS8

I need to save data to NSUserDefault in my iOS Custom Keyboard. I have successfully created App Groups and entitlement in developer portal and XCode. Here is how i save my value with UISwitch - (IBAction)switchAction:(id)sender { [self.defaults…
Fire Fist
  • 7,032
  • 12
  • 63
  • 109
4
votes
0 answers

expose documents from iOS App Group Container in Files app

My iOS app and its extension successfully share files locally through an app-group container. The app also exposes files in the Documents folder of its app container to the Files app, after setting UISupportsDocumentBrowser in the app's…
pommy
  • 3,717
  • 1
  • 15
  • 25
4
votes
0 answers

Several "App Group" Errors when going to Google Maps app from Google Maps iOS SDK but only the first time

I have the Google Maps SDK added and all of the mapping is working fine. The problem is that the first time the app is launched/installed if I navigate to the native Google Maps app via my own button or the "Google" logo I get a slew of "App Group"…
4
votes
1 answer

What happens to existing installed Apps if I edit InHouse Distribution profile?

I have made an iPad In-House Distribution App which is installed in 2000 iPads of my company. Now, I want to enable App group to share few data between my Apps of same developer account. For that, I will have to enable App Groups for my App id and…
4
votes
0 answers

Settings.bundle not respecting app group for shared NSUserDefaults on tvOS

I have a tvOS application with an accompanying topshelf extension. For the main app and the extension to share UserDefaults, it is necessary to create an App Group with a unique identifier of the form group.com.organisation.app.identifier and to…
idrougge
  • 633
  • 5
  • 12
4
votes
0 answers

Application supports iTunes file sharing doesn't support to App Groups container?

Can we support file sharing for App Groups path e.g #define APP_GROUP_PATH [[[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:@"group.xxx.xxx"] path] with the help of following flag? Application supports iTunes…
Sunil Targe
  • 7,251
  • 5
  • 49
  • 80
1 2
3
15 16