Post

Replies

Boosts

Views

Activity

Reply to NSPersistentCloudKitContainer - notification
Hello, Are you using a simulator? I tried your code in TCA environment, and I am receiving messages. iPhone 11, wifi connected, and iCloud signed in. If using a real device, I would check if the container is pointing towards the correct iCloud container.             case .subscribeCloudEvent: return NotificationCenter.default.publisher(for: NSPersistentCloudKitContainer.eventChangedNotification) .compactMap { $0.userInfo?[NSPersistentCloudKitContainer.eventNotificationUserInfoKey] as? NSPersistentCloudKitContainer.Event } .receive(on: env.mainQueue) .eraseToEffect() .map(Action.cloudEventResult) .cancellable(id: cloudEventID())
Jun ’22