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
0 answers
Trying sync data between Apple Watch and iOS app using App Groups and UserDefaults
I want to create a simple iOS app that syncs (and shares some data) with a watch app. I've tried to do this using AppGroup and UserDefaults. iOS app saves the data but the Apple Watch app can't read it. Does anyone know the reason? Can it be because…

doZer
- 185
- 1
- 8
1
vote
2 answers
swift - how call app's code from another app and return data
I need to implement next scheme:
1) App1 has some UI like signin/signup, and user's profile. But main functionality is creating specific http request to get/update token.
2)when tapping button at App2 - App2 calls App1, then App1 execute only http…

nastassia
- 807
- 1
- 12
- 31
1
vote
0 answers
iOS App Groups - Can I use more than one app group in the same app?
I have an app which is using shared NSUserDefaults saved in an app group called e.g com.myappgroup.one. The use of this app group was a mistake.
I now want to update the app with a new version. In this version I have a new app group called e.g…

GuybrushThreepwood
- 5,598
- 9
- 55
- 113
1
vote
0 answers
Why can't I write to the iOS App Group directory?
Beginner(?) question here. I searched StackOverflow and tried several solutions but was unable to solve this issue - I'm can't save anything to the App Group directory created after adding the App Groups capability to the target.
The saving works…

flowy12
- 11
- 3
1
vote
0 answers
FileManager.containerURL(forSecurityApplicationGroupIdentifier) returning nil in unit testing
During unit testing the following function returns nil meaning my group id is invalid. fileManager.containerURL(forSecurityApplicationGroupIdentifier:"group.myGroupId")However if I run the same code on a sim or a device it works perfectly.
What am I…

mufumade
- 400
- 4
- 16
1
vote
0 answers
Core Data load persistent store using AppGroups
I need to access persistent container in my main target as well as app extension. So I have created a framework to share code and I created a NSPersistentContainer subclass like this :
class PersistentContainer: NSPersistentContainer {
override…

Reckoner
- 1,041
- 2
- 13
- 29
1
vote
1 answer
Can't build anymore on Cordova after activating iOS app group and service notification extension
I have an mobile application under :
- Cordova 8.1.2.
- iOS platform 5.0.0
- onesignal-cordova-plugin 2.4.7
- Xcode 10.2.1
Everything was ok. Building &co.
Then I tried to activate the iOS Service notification extension in order to have Media…

jerome34
- 11
- 3
1
vote
0 answers
How to communicate between two apps without using App Groups?
I need to create an app(app2) that will communicate with my host app:
app2 needs to change the color background of the cells in the host app.
I need to find a way to send data from app2 to the host app with the UICollectionView.
Please notice:
I…

LiveFastDieOld
- 11
- 4
1
vote
1 answer
How to call NSUserDefaults Observer from iOS-Extension in Xamarin.iOS
I try to Upload Pictures from iPhone to my Xamarin-PCL-App.
I'm using a Share-Extension and iOS App-groups.
My Main-App Observer on changing NSUserDefaults isn't called, when the Extension changes something.
I try to Upload Pictures from iPhone to…

L.B.
- 11
- 2
1
vote
1 answer
Swift iOS Intent Extension: The data couldn't be read because it isn't in the correct format
I've been trying to add an iOS Siri Intent Extension to my app. There is a shared class between the main app and extension, and within that class it creates an array of objects and then uses UserDefaults to save/load them as needed. This works fine…

dippnerd
- 13
- 3
1
vote
1 answer
Different permissions by multiple Apps on CoreData via App Groups
I'm currently building two apps which share data entities in the same CoreData container with help of the same app group (this is working).
My current goal is to achieve different permissions on this data. To make it clearer, see those two apps as…

Earendil
- 63
- 5
1
vote
1 answer
How to get data from the Message Filter Extension?
For the transfer of information, I used the App Group.
It remained to verify the two directions of data transfer:
Transfer data from the main part of the project to the MessageFilterExtension.
Transfer data from MessageFilterExtension to the main…

Oleg Privalov
- 53
- 6
1
vote
0 answers
Core Data with App Groups and multiple targets
I know when accessing Core Data across targets I need to use an App Group and common persistentContainer configuration. I'm able to read without issue, and I can create as well.
However, where I'm stuck is when the other target creates and saves an…

Gargoyle
- 9,590
- 16
- 80
- 145
1
vote
1 answer
CoreData refreshAllObjects() does not refresh all objects
We have three separate apps which are in same App Group and access the same CoreData store. Problem is that when I change something in item in NSOrderedSet from relationship in managed object, save go to another app where refresh is performed,…

LukasP
- 21
- 1
- 5
1
vote
1 answer
How to build a react-native app for sharing for test without having local dependency
I am new to react-native app development. I wanted to know how can a developed app be shared between other developers without having a local dependency. Is an apple developer account needed for a test build to be shared in ios as well? How can the…

Sneha S
- 15
- 3