238 questions
0
votes
1
answer
29
views
iOS App Group Data Not Accessible from Watch App in Companion App Setup
I have an iOS app with a WatchKit target (companion app). Both the iOS app and Watch app have the App Group capability enabled. I am trying to share data between the iOS app and Watch app using a ...
0
votes
1
answer
57
views
Using App Groups with @AppStorage wrapper
I am writing a custom keyboard extension along with a container app. I would like the user to be able to configure some settings and preferences through the container app and have these settings be ...
1
vote
1
answer
168
views
How to define a different App Group for each environment from XCode
I'm woking on a iOS app that uses App Groups to share data between the app and an extension.
I have three flavours of the app, one for Development, another for Staging and a last one for Production.
I ...
0
votes
0
answers
23
views
Will an iOS app's production users be affected if: after transferring app, the app group id is deleted from old account then recreated in new account?
Currently, when transferring an iOS app, the app group ids are not transferred with it
Apple forums and other stackoverflow posts suggest to delete and recreate it,
but don't mention if the users ...
-2
votes
1
answer
1k
views
How to sync sqlite database with iCloud?
I have searched weeks and found a lot similar questions, but they are all a few years ago. I don't know if it can work in now days.
I have a sqlite file in app group container, and I wanna sync it ...
0
votes
0
answers
84
views
.ipa file doesn't get information from App Group
I have an app that shares its data with a widget through app groups. It works fine in Xcode. However, when creating an ipa file and installing it, I am unable to get any data and the widget is just ...
0
votes
1
answer
618
views
Do I need to change AppGroup Identifier when exporting my app to IPA or xarchive to be used by third party?
I am creating an ipa or xarchive file for a third party that will internally distribute my app for their company.
So far they are having the following error message:
error:...
0
votes
1
answer
44
views
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
...
0
votes
1
answer
1k
views
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 ...
1
vote
0
answers
476
views
App Store Rejection - "Policy 3.1.1" for External Mechanism, Need Advice
Recently, our app was rejected by the App Store citing "Policy 3.1.1" which relates to external mechanisms for purchases or subscriptions within the app. The App Store has requested that we ...
0
votes
0
answers
250
views
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 ...
2
votes
1
answer
979
views
How can I use a Core Data Image (Data) within a Live Activity?
I have an app that saves created user events with a title, date and an image for personal use.
This is stored with Core Data so the Image is stored as Data.
I have a shared App Group that I am trying ...
0
votes
1
answer
825
views
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 ...
0
votes
1
answer
648
views
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....
0
votes
0
answers
97
views
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 ...
0
votes
1
answer
212
views
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:...
1
vote
1
answer
633
views
App Group not working to fetch Core Data with WidgetKit
I'm trying to access my shared Core Data store from WidgetKit. I created an App Group and added both targets to it. In my PersistenceController, I started with just the default code that comes with a ...
1
vote
1
answer
382
views
iOS - How to pass string from main app to widget without using app group
As title, have any idea let widget get main app data?
As I know using App group to save & load the same suite userdefault.
Does have another way to achieve this feature?
Thanks.
0
votes
1
answer
1k
views
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 ...
1
vote
1
answer
452
views
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 ...
2
votes
1
answer
1k
views
How to share Core Data with Widget?
I want to share Core Data with the Widget. I guess I'll need to create App Group (I know how to do this).
But how do I then share the Core Data database with the Widget?
If I wanna use Core Data in my ...
5
votes
0
answers
492
views
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 ...
1
vote
1
answer
298
views
CoreData - load local and AppGroup NSPersistentContainers
I want to load both the local's NSPersistentContainer and the AppGroup's NSPersistentContainer
Here is what I did :
class MyAppGroupPersistentContainer: NSPersistentContainer{
override class func ...
2
votes
0
answers
329
views
Sharing data between application and helper processes in macOS / iOS
I've learnt that it's possible to share configuration data (like registry in Windows) between different components if those components share a similar appGroup entitlement.
In my scenario I've got ...
0
votes
1
answer
488
views
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 ...
1
vote
1
answer
280
views
XCode 12.5 unable to deploy to phone with watch paired - Device "(null)" isn't registered in your developer account
I have an App groups project that deploys an iPhone app with Apple Watch extension. The project was working in prior versions of XCode. I have re-launched the project after a few months and find that ...
5
votes
0
answers
779
views
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 ...
1
vote
0
answers
158
views
SwiftUI: How to get path to JSON in app group?
I have an app group that contains a very simple JSON file I have created. Im using the content blocker extension and instead of accessing the content of "blockerlist" i would like to access ...
1
vote
1
answer
793
views
Firebase Auth user is outdated when using shared user access group
Sharing auth state between an app and its widget extension, but sometimes the auth state is not in sync. When the user signs in/out from my app, it refreshes the widget timeline, which then checks for ...
3
votes
2
answers
3k
views
iOS Share Extension App Group error passing file URL in react-native
I have an iOS share extension in my react-native app.
I'm using react-native-share-menu to implement it and I'm using a custom RN view for the share dialog as per the component documentation.
My ...
3
votes
1
answer
3k
views
EXC_CRASH (SIGKILL) in iOS 14.2 version
My app currently registered in the App Store works normally in version 14 or earlier, but it does not run after updating to iOS 14.2 version.(The app doesn't launch, waits for a few seconds on a black ...
3
votes
1
answer
1k
views
Store an array on the app group for WidgetKit
I'm trying to store an struct array into the app group container to use it later on the widget.
let's assume, I have an array of string
let = array = ["object1", "object2", "...
0
votes
1
answer
288
views
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 this:
db.collection("...
0
votes
1
answer
1k
views
iOS can't visit the app group folder with FileManager [duplicate]
I use the following code to write a png file to the App Group folder to share between my share extention and App , and i found that the write to file can be succeed (i can find the file in my terminal)...
0
votes
1
answer
1k
views
Passing data and variables between targets
Overview
I'm trying tot understand app groups so that I can pass data and variables from my main app to my extension and viceversa.
What I found
It's very hard for me to understand a few concepts ...
4
votes
1
answer
2k
views
NSPersistentCloudKitContainer: Share a single database with App Extension
I know this is a common question, maybe it is so many time asked before. Also I know how to share a single database with App Extensions using Core Data by enabling App Groups. I am now using the ...
3
votes
1
answer
3k
views
How can I use IPC from an app extension to asynchronously send information to the containing app on iOS?
I would like to use inter-process communication in my app extension to notify its containing app when the extension makes changes to the app group's UserDefaults database. Currently, there appears to ...
1
vote
0
answers
445
views
IOS App crash: EXC_CRASH (SIGKILL) Namespace SPRINGBOARD, Code 0x8badf00d
My app is getting crashed on TestFlight and on production while opening after some time again, please have a look at the symbolicated crash log below.
Please help me, I am struggling a lot because of ...
1
vote
1
answer
2k
views
IOS app crashes: Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
I am facing an issue while I am returning after some time in the App, can anyone help me in this regard?
Please find the below crash log.
I did some research regarding this issue & I found some ...
5
votes
1
answer
2k
views
Refreshing Core Data after changes from main app or extension
I have been working on a today widget for my Core Data app. I use a NSFetchedResultsController for the widget and main app and am notified when the data changed/added from the opposite target using ...
18
votes
1
answer
3k
views
Migrating Data to App Groups Disables iCloud Syncing
I am adding a Today Extension to my existing app. I have added the an App Group and used this post to successfully migrate my Core Data's data to the App Group's store. My app uses both a ...
5
votes
0
answers
2k
views
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 ...
6
votes
2
answers
5k
views
App Groups forSecurityApplicationGroupIdentifier returns nil
I set up an App Group to use with my Today Extension. I added the app group in the main app's target and in the extension's target. In my App ID Configuration in the developer portal I have the app ...
1
vote
0
answers
575
views
I have tried to share data between notification service extension and main app using app group in iOS
I have tried to share data between notification service extension and main app using app group in iOS, i have complete the set up and done every thing correctly , still i am not able receive data in ...
2
votes
0
answers
973
views
FileManager.default.containerURL(forSecurityApplicationGroupIdentifier:) returns nil
I am using app groups to share information between an ios app and a files extention.
The problem here however is that FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.my....
2
votes
0
answers
177
views
How to complete delete an iOS app data from keychain manully
I'm an test associate. Developers in my organisation have made a mistake in the code. After deleting the app, it leaves behind certain keychain data, which stops me from installing any other version ...
1
vote
0
answers
1k
views
Trying sync data between Apple Watch and iOS app using App Groups and UserDefaults [duplicate]
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 ...
1
vote
2
answers
3k
views
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 ...
1
vote
0
answers
1k
views
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 ...
1
vote
0
answers
797
views
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 ...