Search results for

A Summary of the WWDC25 Group Lab

10,368 results found

Post

Replies

Boosts

Views

Activity

Get all Products for in a subscription group
If I use SubscriptionStoreView.init(groupID), it seems to be able to look up all the Products that have that subscription group ID. But I don't see any public method for doing that myself. Am I missing something, or is SubscriptionStoreView using a private method to do this lookup? I know that historically it has always been necessary to know the product IDs of all the products you want to sell; you have never been able to ask Store Kit to give you a list. SubscriptionStoreView doesn't seem to have this limitation, which is a bit surprising.
0
0
712
Feb ’24
twos settings with app group issue
I have a tvos application and a topshelf extension that share NSUserDefault settings via an App group.I instantiated the user defaults in the following manner let userDefaults = NSUserDefaults(suiteName: group.xxx.xxx.xxx)!Everything works as expected; settings are shared between the app and the top shelf extension.However I have not been able to get the Settings App to work with the app group.I have created a key in the Root.plist of my settings bundle called ApplicationGroupContainerIdentifier with the app group name, but that does not make work.The Settings App does not see values entered by the application or vice versa.I tested using the standard way of instantiating the userdefaults: userDefaults = NSUserDefaults.standardUserDefaults()That works but of course then the topshelf extension does not share any settings with the app.I would appreciate any help.Maybe the Settings App in tvOS doen not support app groups yet, I don't know.Thanks for any help
0
0
412
Nov ’15
Multiple active subscriptions within the same subscription group
We have 2 monthly subscription tiers that are part of a subscription group, and always have been part of this group. Both are configured with a 1 month trial introductory offer. According to the documentation for auto-renewable subscriptions,: Users can subscribe to one subscription product per group at a time. And yet several users have managed to start trials of both products in this group simultaneously, which converted to paid subscriptions after the expiration of the trials, and now are being concurrently billed by Apple for both. How do we completely prevent this from happening?
1
0
38
2w
How to specify TLS key exchange groups with NWProtocolTLS.Options
I am trying to establish a TLS 1.3 connection to a server that only accepts the SECP256R1 and FFDHE2048 TLS key share groups using the following code but the server is failing the TLS handshake because my client is not using a supported key exchange group. How do I specify which TLS key exchange group my client should use during the handshake? let tlsOptions = NWProtocolTLS.Options() if let secIdentity = getSecIdentity(), let identity = sec_identity_create(secIdentity) { sec_protocol_options_set_min_tls_protocol_version( tlsOptions.securityProtocolOptions, .TLSv13) sec_protocol_options_set_local_identity( tlsOptions.securityProtocolOptions, identity) } let tlsParams = NWParameters(tls: tlsOptions, tcp: .init()) let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(host), port: NWEndpoint.Port(port)) let nwConnection = NWConnection(to: endpoint, using: tlsParams) nwConnection.stateUpdateHandler = stateDidChange(to:) nwConnection.start(queue: queue) Thanks!
1
0
613
Sep ’23
Error -34018 calling SecItemCopyMatching (no group)
Hi, I'm getting the error code -34018 in the VisionOS simulator when calling SecItemCopyMatching with this query: let getquery: [String: Any] = [kSecClass as String: kSecClassGenericPassword, kSecAttrAccount as String: name, kSecReturnData as String: kCFBooleanTrue!, kSecMatchLimit as String : kSecMatchLimitOne ] The console says: copy_matching Error Domain=NSOSStatusErrorDomain Code=-34018 Client has neither application-identifier nor keychain-access-groups entitlements UserInfo={numberOfErrorsDeep=0, NSDescription=Client has neither application-identifier nor keychain-access-groups entitlements} I'm NOT using groups. I've tried changing the bundle id. Xcode version 15.0 beta 2 (15A5161b) Anyone have any ideas? Anyone using the keychain in their visionOS app? :-)
2
0
1.5k
Jul ’23
network extension, app groups, unix domain socket
Hi to all.I am developing network extension and have several issues that I faced and have no idea how to solve.So:1. there is sandboxed application that can install/unintall own network extension;2. there is App Group(https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_application-groups?language=objc), sandboxed application and appropriate network extension are included into group via owns entitlement files;3. App group registered manualy on https://developer.apple.com/account/resources/identifiers/list/applicationGroup, the same identifier is used in appropriate entitlement files. Identifier on site looks like group.TEAM_ID.com.company.app-group. Identifier in entitlement looks like TEAM_ID.com.company.app-group, i.e. without precending group;4. It is required to use unix domain socket for IPC communication between sandboxed application and network extension(I am porting existing software, so this is not a b
5
0
2.5k
May ’20
Is it possible to share an app group between Catalyst and AppKit Apps?
I have 2 Apps. A sandboxed native Mac App written in AppKit/SwiftUI. A Catalyst App. I would like them to be able to communicate with each other. I assumed I would be able to do this using a shared App Group but I can't get it to work and I think this is because the App Group naming conventions appear to be different. As far as I can make out: A Mac App uses App groups prefixed with the team ID A Catalyst App uses the iOS App groups which are prefixed with group. I have tried multiple combinations of different prefixes to try and make this work but without success. I have been testing this by using UserDefaults(suiteName: appGroup) and then attempting to read write values between the 2 Apps but without success so far. My questions are: Is sharing an App Group between Catalyst and native technically possible? If it is possible what is the magic combo of App Group prefixes that makes it work? If it is not possible then do I have any other options fo
2
0
1.5k
Jun ’22