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
1
vote
1 answer

Sharing data between app extension and conainer app

I'm trying to share data between an app extension and my container app. I setup an app group in the container app and referenced it my app extension. When my app extension is accessed, I save an object to NSUserDefaults //in the app…
Avba
  • 14,822
  • 20
  • 92
  • 192
0
votes
0 answers

Problem with App Group ID in iOS Development

I'm facing an issue with my iOS app's App Group ID setup and could use some help in simple terms. When using the App Group ID "group.com.xxxxxxxxxxxxx.xxxxx.MoEngage" in my Apple Developer account, I noticed that Xcode shows a slightly truncated…
Danish Farooq
  • 135
  • 1
  • 10
0
votes
1 answer

Write to AppGroup shared directory

I try to write to the AppGroup shared container with the following Ojecttive-C code: NSFileManager *fileManager = [NSFileManager defaultManager]; NSURL *path = [fileManager …
thpitsch
  • 2,016
  • 2
  • 21
  • 27
0
votes
1 answer

Crashing issue with Realm when running app from widget target and realm file is placed in the app group

I'm facing an issue with my app where I receive a lot of crashes at the line try Realm(configuration: config). In my code, I'm using the following approach to read the Realm database from both the main app and the widgets: var config =…
Meroelyth
  • 5,310
  • 9
  • 42
  • 52
0
votes
0 answers

How to migration exists coredata to app groups for widget?

Recently, I wanted to add a widget to my app that fetches some data from Core Data in the main app. Based on my search, I wrote the following code, but I encountered the following three problems:
 The first problem is that I added and modified data…
IDTIMW
  • 217
  • 2
  • 14
0
votes
0 answers

persistentStore(for:) always return nil

I'm following this solution to migrate the Core Data database to AppGroup and always "persistentStore(for: oldStoreURL)" returns "nil". The URL is correct and the file exist in the path. Any ideas? if let url = defaultURL, url.absoluteString !=…
LucasC
  • 43
  • 5
0
votes
0 answers

I have a question when an iOS app and its widget share a database

Currently my app wants to add a widget. I know that in order to use a database in a widget, I need to use the database in the path created using the app group. In this case, usually only widgets use a shared database? Or will the app database itself…
seonwoo
  • 11
  • 1
0
votes
1 answer

How to store an NSImage as Data in an app group on macOS

In iOS I can store UIImage to an app group as Data. I can convert the png image with pngData() to a Data object: let imageData = scaledImage.pngData()! I store that object in an app group, retrieve it and convert ik back to an UIImage: let image =…
0
votes
1 answer

Could not archive project in Xcode

I have iOS application build in UIKit with SwiftUI widget extension. Until now the archiving worked just fine. I've added App Group to share user defaults in following format: "group.MYTEAMID.sk.MYNAME.names". When I try to archive this project and…
Peter Hlavatík
  • 117
  • 1
  • 1
  • 11
0
votes
0 answers

App Group for Apps with different Developer Accounts

There are 2 Apps. Both belong to the same organization but have different developer accounts. Both are Mac Apps. Can they still be a part of the same App Group for sharing data, without changing the developer accounts?
user2597100
  • 97
  • 1
  • 10
0
votes
1 answer

cannot access app group folder in intent handler

I have the following code in an intent handler for a widget I am creating: extension FileManager { static var appGroupURLAsText: String { `default`.containerURL(forSecurityApplicationGroupIdentifier:…
Philip7899
  • 4,599
  • 4
  • 55
  • 114
0
votes
1 answer

iOS Custom Notification Sound (UNNotificationSound) doesn't play when iPhone is locked

My app uses remote notifications with a NotificationService Extension in which I edit the notification before displaying it. I would like to let the user upload a custom sound file which should be played instead of the default sound. For this I use…
0
votes
1 answer

Advice on sharing data between apps NSPersistantCloudkit container or App groups or both?

I have several different apps that I'd like to share a personal core data store with on the same device and across devices. I've been experimenting with NSPersistentCloudKitContainer, which seems to work, but it can take a while to sync and it's not…
Toby Evetts
  • 123
  • 1
  • 9
0
votes
1 answer

Are there any way to know what bundleIDs are used within Appgroups?

I'm currently making two iOS apps(technically, a library for two apps) that uses the AppGroups that shares UserDefaults data between the apps using the same App Group ID. The problem is I don't know how to get the bundleIDs of the apps in the…
0
votes
1 answer

Reading data from Firestore in Swift

I am currently developing an IOS app, and I need a database! I've chosen the google firestore! I need to read some fields I create that have subfields! Something like…