Search results for

“A Summary of the WWDC26 Group Lab”

11,828 results found

Post

Replies

Boosts

Views

Activity

Shared App Groups cache not writable
I'm trying to share cached data between a tvOS app and a TVService extension. I crated an app group and get a directory based on the identifier. All works fine in the simulator. On the tvOS dev kit however the app does not have write permission the app group directory.I realize the restrictions on tvOS but shared cache data in app groups should be possible according the FAQ:For temporary local storage, apps may access the NSTemporaryDirectory and NSCachesDirectory in their own container, or NSCachesDirectory in a shared container.So how do I get access to the caches in the app group container? has anybody here got this working?
2
0
5k
Oct ’15
Group iMessage Apps are problematic
I get the distinct feeling, based on the WWDC presentations, that group iMessage apps are either incomplete or not really thought out. Add to this that there are no group conversations possible in the simulator. The group message part of the demo was just a couple of slides and he used the phrase we are recommending for the moment which leads me to believe that Apple probably has unfinished business here. I think that the idea of making MSSession the carrier of data and make each subsequent message create a stack of unprocessed responses so that when the user clicks on the bubble it sees each response and can process them one by one. What I'm wondering is, in the same section, they talk about privacy. So each device will get different identifiers for each user. If you are using the cloud, I don't see how you can then aggregate responses correctly. Take this scenario:I send an iMessage App (IMA) to two of my friends and it asks them to pick what they want for lunch.Friend A responds
5
0
1.1k
Jul ’16
App Group access after app transfer
I want to ask a question about App Transfer. We have succesfully transferred our iOS app to new developer account. App ID and bundle is transferred but there is no app group id and push notification certificate in new developer account.Our database is stored in the app group container and have to create same app group id in new developer account. I want to ask you if there is any risk to delete old app group id from old account and re-create the same app group id in new developer account. Will any App Store users affect data lose or etc ?Or, is there any other way to transfer App Group ID to new developer account ?Thanks
9
0
8.1k
Jan ’17
How to handle multiple users purchasing a subscription from a single Apple ID, or group them based on subscription group?
We are implementing auto-renewable subscriptions on iOS. We face a problem where users can purchase multiple subscriptions on a single Apple ID linked to the device. We are having 3 subscription plans as Regular (Monthly), Regular (Yearly), and Special (Yearly). Now, we have decided that Regular plans will be configured in a separate subscription group and special plan on the other since we don't want the Regular users to know that there is a special plan that is less costly than theirs. (Through Manage Subscription of the device Settings) Scenario 1: If User A subscribes to the Special plan on his Apple Id, his subscription gets active. Now, if on the same Apple ID, user B logs in to the app and is a Regular user then he can purchase any of the Regular plans. But the issue is User A's receipt and User B's receipt cause problems sometime later since their receipts are created on the same Apple ID. We are not able to restrict User B to purchase from User A's device in this case, since the original_tra
0
0
784
Apr ’21
QuickLook Extension and App Groups on macOS
Hello, I am trying to use app groups to share preferences between an app and its QuickLook extension (both sandboxed), but I can't understand why it's not working. For testing, I created an empty macOS app project and added a QuickLook Extension, then on both the targets' entitlement files I added the app group domain in the form teamid.test. Last but not least, in the Info.plist file of the QL extension i added some UTIs to have the QL extension called when previewing. In the QL extension's PreviewViewController.swift file I try to save a value like this: func preparePreviewOfFile(at url: URL, completionHandler handler: @escaping (Error?) -> Void) { let defaults=UserDefaults(suiteName: teamid.***) defaults?.set(1, forKey: test) handler(nil) } If I try to run the app and preview a file though, I get this message in the Console: Couldn't write values for keys ( test ) in CFPrefsPlistSource<0x7fb63681cce0> (Domain: teamid.***, User: kCFPreferencesCurrentUser, ByHost: No, Container: (n
0
0
963
Nov ’21
UICollectionView Compositional Layout Tag Group
I’m trying to create a layout with a group of labels / tags. The labels have a flexible width and height. If a label exceeds the width of the container it should grow in height. I’m using a UICollectionView with a compositional layout to create this layout. At first I used estimated for the width and height dimension of the layout items within a horizontal group layout that had an fractionalWidth and an estimated height. This worked but only if the cells with the labels were smaller than the group width. If they are larger, the app crashes. Somewhere on StackOverflow I read that this is a known issue. To fix the issue above I made the main group a vertical layout and created a different group for every row of labels. If the labels width exceeds the width of the group I give if a fractional width and if it’s smaller I give it an estimated width. This approach prevents the crashed above and gives me my desired layout. But… as soon as I rotate the device of c
0
0
1.3k
Oct ’23
Group Activities Entitlements on MacCatalyst
I am adding Group Activities integration with a MacCatalyst app. I have added the Group Activities entitlement in Xcode. I also checked the entitlements with : codesign --display --entitlements :- I can see the entitlement : com.apple.developer.group-session The feature work fine on iPadOS but when I run it on MacOS, the GroupActivitySharingController is not loading properly. I get the following error messages: Cannot run query EXQuery: extension point com.apple.groupactivities platforms: 6 with error: (null) Failed to lookup extension with query EXQuery: extension point com.apple.groupactivities platforms: 6 on <_GroupActivities_UIKit.PeoplePickerController: 0x600005020980> Failed to fetch config for hostViewController <_GroupActivities_UIKit.PeoplePickerController: 0x600005020980> Failed to build remote hostViewController for <_GroupActivities_UIKit.GroupActivitySharingController: 0x1417f1250> Failed to fetch extensionViewController Calling -viewDidAppear: directly on a v
0
0
824
Mar ’24
App shares with FaceTime during Group Activities
My app passes data across a Group Activities session on a FaceTime call. It requires that the user can see the video coming from the other end. A normal call on the iPhone only sees a PiP video. On an iPad, the user can divide the screen between the two apps. An iPhone user may not be familiar with the iPad UI. Is there an API to divide the screen between FaceTime and another app, automatically? Group Activities with PiP Video iPad FaceTime Full Screen Video
Topic: UI Frameworks SubTopic: UIKit
1
0
78
Sep ’26
Reply to Sandboxed app extensions connecting to not sandboxed XPC service
It is not going to be sandboxed but rather notarized, so I'm using hardened runtime. Just FYI, I recommend that you use enable the hardened runtime in all your code. While the only place it’s required right now is for notarisation, it’s a good security practice in all situations. My application bundle has now the following structure: That’s a really helpful summary. Thanks! I presume that your login item is actually a Service Management login item, that is, you install it using SMLoginItemSetEnabled. If so, standard practice is to prefix your XPC service name with your Team ID. That will be accessible to your app and your app extensions. If any of the client code is sandboxed, sign it with an app group entitlement that’s a prefix of the XPC service name. For example, if your service name is SKMME9E2Y8.com.example.test703702.service, add an app group ``SKMME9E2Y8.com.example.test703702`. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’22
Shared App Groups cache not writable
I'm trying to share cached data between a tvOS app and a TVService extension. I crated an app group and get a directory based on the identifier. All works fine in the simulator. On the tvOS dev kit however the app does not have write permission the app group directory.I realize the restrictions on tvOS but shared cache data in app groups should be possible according the FAQ:For temporary local storage, apps may access the NSTemporaryDirectory and NSCachesDirectory in their own container, or NSCachesDirectory in a shared container.So how do I get access to the caches in the app group container? has anybody here got this working?
Replies
2
Boosts
0
Views
5k
Activity
Oct ’15
Group iMessage Apps are problematic
I get the distinct feeling, based on the WWDC presentations, that group iMessage apps are either incomplete or not really thought out. Add to this that there are no group conversations possible in the simulator. The group message part of the demo was just a couple of slides and he used the phrase we are recommending for the moment which leads me to believe that Apple probably has unfinished business here. I think that the idea of making MSSession the carrier of data and make each subsequent message create a stack of unprocessed responses so that when the user clicks on the bubble it sees each response and can process them one by one. What I'm wondering is, in the same section, they talk about privacy. So each device will get different identifiers for each user. If you are using the cloud, I don't see how you can then aggregate responses correctly. Take this scenario:I send an iMessage App (IMA) to two of my friends and it asks them to pick what they want for lunch.Friend A responds
Replies
5
Boosts
0
Views
1.1k
Activity
Jul ’16
App Group access after app transfer
I want to ask a question about App Transfer. We have succesfully transferred our iOS app to new developer account. App ID and bundle is transferred but there is no app group id and push notification certificate in new developer account.Our database is stored in the app group container and have to create same app group id in new developer account. I want to ask you if there is any risk to delete old app group id from old account and re-create the same app group id in new developer account. Will any App Store users affect data lose or etc ?Or, is there any other way to transfer App Group ID to new developer account ?Thanks
Replies
9
Boosts
0
Views
8.1k
Activity
Jan ’17
How to handle multiple users purchasing a subscription from a single Apple ID, or group them based on subscription group?
We are implementing auto-renewable subscriptions on iOS. We face a problem where users can purchase multiple subscriptions on a single Apple ID linked to the device. We are having 3 subscription plans as Regular (Monthly), Regular (Yearly), and Special (Yearly). Now, we have decided that Regular plans will be configured in a separate subscription group and special plan on the other since we don't want the Regular users to know that there is a special plan that is less costly than theirs. (Through Manage Subscription of the device Settings) Scenario 1: If User A subscribes to the Special plan on his Apple Id, his subscription gets active. Now, if on the same Apple ID, user B logs in to the app and is a Regular user then he can purchase any of the Regular plans. But the issue is User A's receipt and User B's receipt cause problems sometime later since their receipts are created on the same Apple ID. We are not able to restrict User B to purchase from User A's device in this case, since the original_tra
Replies
0
Boosts
0
Views
784
Activity
Apr ’21
QuickLook Extension and App Groups on macOS
Hello, I am trying to use app groups to share preferences between an app and its QuickLook extension (both sandboxed), but I can't understand why it's not working. For testing, I created an empty macOS app project and added a QuickLook Extension, then on both the targets' entitlement files I added the app group domain in the form teamid.test. Last but not least, in the Info.plist file of the QL extension i added some UTIs to have the QL extension called when previewing. In the QL extension's PreviewViewController.swift file I try to save a value like this: func preparePreviewOfFile(at url: URL, completionHandler handler: @escaping (Error?) -> Void) { let defaults=UserDefaults(suiteName: teamid.***) defaults?.set(1, forKey: test) handler(nil) } If I try to run the app and preview a file though, I get this message in the Console: Couldn't write values for keys ( test ) in CFPrefsPlistSource<0x7fb63681cce0> (Domain: teamid.***, User: kCFPreferencesCurrentUser, ByHost: No, Container: (n
Replies
0
Boosts
0
Views
963
Activity
Nov ’21
UICollectionView Compositional Layout Tag Group
I’m trying to create a layout with a group of labels / tags. The labels have a flexible width and height. If a label exceeds the width of the container it should grow in height. I’m using a UICollectionView with a compositional layout to create this layout. At first I used estimated for the width and height dimension of the layout items within a horizontal group layout that had an fractionalWidth and an estimated height. This worked but only if the cells with the labels were smaller than the group width. If they are larger, the app crashes. Somewhere on StackOverflow I read that this is a known issue. To fix the issue above I made the main group a vertical layout and created a different group for every row of labels. If the labels width exceeds the width of the group I give if a fractional width and if it’s smaller I give it an estimated width. This approach prevents the crashed above and gives me my desired layout. But… as soon as I rotate the device of c
Replies
0
Boosts
0
Views
1.3k
Activity
Oct ’23
Group Activities Entitlements on MacCatalyst
I am adding Group Activities integration with a MacCatalyst app. I have added the Group Activities entitlement in Xcode. I also checked the entitlements with : codesign --display --entitlements :- I can see the entitlement : com.apple.developer.group-session The feature work fine on iPadOS but when I run it on MacOS, the GroupActivitySharingController is not loading properly. I get the following error messages: Cannot run query EXQuery: extension point com.apple.groupactivities platforms: 6 with error: (null) Failed to lookup extension with query EXQuery: extension point com.apple.groupactivities platforms: 6 on <_GroupActivities_UIKit.PeoplePickerController: 0x600005020980> Failed to fetch config for hostViewController <_GroupActivities_UIKit.PeoplePickerController: 0x600005020980> Failed to build remote hostViewController for <_GroupActivities_UIKit.GroupActivitySharingController: 0x1417f1250> Failed to fetch extensionViewController Calling -viewDidAppear: directly on a v
Replies
0
Boosts
0
Views
824
Activity
Mar ’24
App shares with FaceTime during Group Activities
My app passes data across a Group Activities session on a FaceTime call. It requires that the user can see the video coming from the other end. A normal call on the iPhone only sees a PiP video. On an iPad, the user can divide the screen between the two apps. An iPhone user may not be familiar with the iPad UI. Is there an API to divide the screen between FaceTime and another app, automatically? Group Activities with PiP Video iPad FaceTime Full Screen Video
Topic: UI Frameworks SubTopic: UIKit
Replies
1
Boosts
0
Views
78
Activity
Sep ’26
Reply to Sandboxed app extensions connecting to not sandboxed XPC service
It is not going to be sandboxed but rather notarized, so I'm using hardened runtime. Just FYI, I recommend that you use enable the hardened runtime in all your code. While the only place it’s required right now is for notarisation, it’s a good security practice in all situations. My application bundle has now the following structure: That’s a really helpful summary. Thanks! I presume that your login item is actually a Service Management login item, that is, you install it using SMLoginItemSetEnabled. If so, standard practice is to prefix your XPC service name with your Team ID. That will be accessible to your app and your app extensions. If any of the client code is sandboxed, sign it with an app group entitlement that’s a prefix of the XPC service name. For example, if your service name is SKMME9E2Y8.com.example.test703702.service, add an app group ``SKMME9E2Y8.com.example.test703702`. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’22