Questions tagged [appgroups]

23 questions
9
votes
2 answers

Can I share files/data through App Groups but in different developer accounts applications?

As per my knowledge, I know we can share files between two apps through App Groups developed by the same developer account/certificate. But here my question is : Can I do the same thing Sharing file between different apps through App Groups with…
Sunil Targe
  • 7,251
  • 5
  • 49
  • 80
7
votes
1 answer

Swift3: Empty fetch when accessing Core Data from Watch Extension via AppGroups

currently I'm working on an update for an already existing App (migration to Swift 3). I'm having targets for Today-, Search-, Message- and Watch Extensions. Every target needs to access the Core Data Model of my App, so I created an AppGroup and…
cr0ss
  • 533
  • 4
  • 18
6
votes
0 answers

User Defaults couldn't read values in CFPrefsPlistSource

I have a messaging app where I use an app extension to be able to look up contact information when I receive an APN containing a new message. I exchange the Addressbook contacts info which I have saved in my app through app groups with the help of…
Nelly v
  • 229
  • 1
  • 12
6
votes
1 answer

Shared NSUserDefault between sandboxed OSX app and extension

Background I'm developing an OSX application with an associated Today Widget extension. I'd like for the main app and the extension to share user preferences, much like is described in Sharing Data with Your Containing App from Apple. In my case,…
acw
  • 1,093
  • 10
  • 14
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
4
votes
2 answers

Sharing PDF file from Safari with Action Extension failing in Swift 4.2 Xcode 10

I am writing an app with the "App Groups" capability enabled. The Action Extension in this app is open to PDF files and is available when a web page loaded in Safari is opened in reader mode and then converted to PDF. In short, the app can take in…
Mihir
  • 137
  • 2
  • 12
4
votes
1 answer

Persisting standard NSUserDefaults with App Groups enabled

Original situation: I'm developing a sandboxed app on macOS 10.13. It's a shoebox-like app consisting of a main window with toolbar. Autosaving for the window frame and toolbar configuration are set up in Interface Builder. If I run and quit the…
mschmidt
  • 2,740
  • 4
  • 17
  • 31
2
votes
1 answer

App Group: File saving issue on physical device (works on simulator)

I am currently facing an issue with my iOS app and its associated Preview extension. I am trying to save a file to a shared container using App Groups, so that my main app can read the file. The code works perfectly on the iOS simulator, but when I…
pmark
  • 281
  • 2
  • 9
1
vote
2 answers

UserDefaults have different values within same app group

I have App+Extension and I made shared storage like this extension UserDefaults { static let suiteName = "group.myApp" static let extensions = UserDefaults(suiteName: suiteName)! private enum Keys { static let personNames =…
StaticV0id
  • 411
  • 4
  • 13
1
vote
0 answers

Sharing Application Scripts directory between Mac Application and Extension + App Group

I will be running user-provided scripts via a Mac application and and an extension of the app. The app and extension both belong to the same App Group and individually have the correct entitlements to run scripts. The Mac app is Sandboxed. According…
pkamb
  • 33,281
  • 23
  • 160
  • 191
1
vote
1 answer

Xcode - Unable to enable App Groups from second app

I'm trying to create an App Group for sharing data between two apps. In one app, I've created and successfully accessed the App Group. However, when I go to the other app and attempt to enable the app group, I get a whole bunch of errors relating…
olynoise
  • 2,016
  • 2
  • 19
  • 32
1
vote
0 answers

Container app cannot read user defaults data that was written by a VPN network extension

I'm trying to use App Groups to share data between a VPN Extension and it's container application in iOS. I've been following Apple's instructions on how to do this, but it doesn't seem to be working. I've created the App Group on my Apple…
Nathan F.
  • 3,250
  • 3
  • 35
  • 69
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
0 answers

Can't use App Group Capability in Xcode with a .mobileprovision file

I am developing an App in SwiftUI for my thesis and I need the "App Group" capability to make my app and extension communicate. I don't have a Developer Account, I only have a .mobileprovision file that should give me access to the "App Group"…
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
1
2