Post

Replies

Boosts

Views

Activity

How can I check if I RecordZone is shared?
I am interested in checking if a RecordZone has been shared. When I share a zone, I know there is a share record created in that zone. From Apple's CloudKit example: func fetchOrCreateShare(contact: Contact) async throws -> (CKShare, CKContainer) {     guard let existingShare = contact.associatedRecord.share else { let share = CKShare(rootRecord:contact.associatedRecord)      share[CKShare.SystemFieldKey.title] = "Contact: \. (contact.name)"       _ = try await database.modifyRecords(saving: [contact.associatedRecord, share], deleting: []).       return (share, container) }     guard let share = try await database.record(for: existingShare) as? CKShare else {       throw ViewModelError.invalidRemoteShare     }     return (share, container) } The first line of the method guard let existingShare = contact.associatedRecord.share checks if a specific record is being shared, but in the case of a shared zone, given a zone name, how can I check the .share of that zone? When I try CKRecordZone(zoneName: "Contacts").share, the value is nil even though the zone is being shared.
1
0
685
May ’22
Do you need to use SKProductsRequest to fetch products in the Sandbox envrionment?
I would like to know if you have to use SKProductsRequest to fetch your products in the sandbox environment or if you can use Product.products(for:)? Product.products(for:) is only returning products when I have a StoreKit configuration file selected. Can a StoreKit configuration file be used with the sandbox environment or only Xcode environment?
1
0
627
Feb ’23
[CloudKit Console] Crashes with 500 internal server error
I needed to verify something on the CloudKit console, but it is not working even though the system status says that it's operational: http://developer.apple.com/system-status/ Is anyone experiencing the same issue? I can't load the databases, zones nor saved queries.
Replies
1
Boosts
0
Views
984
Activity
Apr ’22
How can I check if I RecordZone is shared?
I am interested in checking if a RecordZone has been shared. When I share a zone, I know there is a share record created in that zone. From Apple's CloudKit example: func fetchOrCreateShare(contact: Contact) async throws -> (CKShare, CKContainer) {     guard let existingShare = contact.associatedRecord.share else { let share = CKShare(rootRecord:contact.associatedRecord)      share[CKShare.SystemFieldKey.title] = "Contact: \. (contact.name)"       _ = try await database.modifyRecords(saving: [contact.associatedRecord, share], deleting: []).       return (share, container) }     guard let share = try await database.record(for: existingShare) as? CKShare else {       throw ViewModelError.invalidRemoteShare     }     return (share, container) } The first line of the method guard let existingShare = contact.associatedRecord.share checks if a specific record is being shared, but in the case of a shared zone, given a zone name, how can I check the .share of that zone? When I try CKRecordZone(zoneName: "Contacts").share, the value is nil even though the zone is being shared.
Replies
1
Boosts
0
Views
685
Activity
May ’22
Do you need to use SKProductsRequest to fetch products in the Sandbox envrionment?
I would like to know if you have to use SKProductsRequest to fetch your products in the sandbox environment or if you can use Product.products(for:)? Product.products(for:) is only returning products when I have a StoreKit configuration file selected. Can a StoreKit configuration file be used with the sandbox environment or only Xcode environment?
Replies
1
Boosts
0
Views
627
Activity
Feb ’23
Sandbox subscriptions are not accelerated
I have set up an auto-renewing subscription that has a one month free trial. When using a Sandbox testing account and subscribing to the free trial, the trial lasts one month instead of the three minutes which I have configured. Is this a bug or is there a setting that I need to adjust to accelerate the subscriptions lengths for Sandbox users?
Replies
1
Boosts
0
Views
1.3k
Activity
Jul ’23