Post

Replies

Boosts

Views

Activity

Reply to Shortcuts Automation Trigger Transaction Timeouts
This image visually illustrates the issue: The transaction of CHF 8.50 was executed at 12:25 PM, and the card provider, Cembra, sent a notification. However, the shortcut failed because no Apple Wallet notification for the transaction was received (it timed out while waiting for it). Around 4 PM, the Apple Wallet transaction notification finally appeared on top. After some time, the order of notifications was adjusted, even though the Apple Wallet notification arrived three hours late. iPhone 15 Pro, iOS 18.3.1
3w
Reply to Transactions automations don't seem to work
Hi @ArnoldM2, I'm facing the same issue. The issue appears to be tied to the card providers, as Apple Wallet sometimes does not receive the transaction promptly. However, if a timeout occurs, the notification eventually reaches the Wallet app later. Unfortunately, the transaction automation trigger does not behave in the same way—it times out instead of handling delayed inputs like the Wallet app. This needs to be fixed to ensure the trigger can seamlessly process delayed transactions. https://developer.apple.com/forums/thread/765516 Hopefully, Apple will fix this soon!
Feb ’25
Reply to Shortcuts | Transaction Automation | IOS 18
The issue appears to be tied to the card providers, as Apple Wallet sometimes does not receive the transaction promptly. However, if a timeout occurs, the notification eventually reaches the Wallet app later. Unfortunately, the transaction automation trigger does not behave in the same way—it times out instead of handling delayed inputs like the Wallet app. This needs to be fixed to ensure the trigger can seamlessly process delayed transactions. Could you provide a solution or workaround for this issue? FB16379100
Jan ’25
Reply to Shortcuts Automation Trigger Transaction Timeouts
The issue appears to be tied to the card providers, as Apple Wallet sometimes does not receive the transaction promptly. However, if a timeout occurs, the notification eventually reaches the Wallet app later. Unfortunately, the transaction automation trigger does not behave in the same way—it times out instead of handling delayed inputs like the Wallet app. This needs to be fixed to ensure the trigger can seamlessly process delayed transactions. Could you provide a solution or workaround for this issue?
Jan ’25
Reply to MLTextClassifier confidence?
I discovered that you can use NLModel for predictions. Here's an example: guard let model = model, let nlModel = try? NLModel(mlModel: model) else { Logger.categoryClassifier.error("Failed to load NLModel.") return nil } let hypotheses = nlModel.predictedLabelHypotheses(for: name.lowercased(), maximumCount: 10) For more details, refer to the documentation: https://developer.apple.com/documentation/naturallanguage/nlmodel
Dec ’24
Reply to SwiftData with CloudKit failing to migrate schema
I encountered the same issue as @jknlsn. The didMigrate method was only triggered after switching the initializer. let modelContainer: ModelContainer let cloudConfig: ModelConfiguration = .init() let localConfig: ModelConfiguration = .init(cloudKitDatabase: .none) let schema = Schema(CurrentScheme.models) do { _ = try? ModelContainer( for: schema, migrationPlan: MigrationPlan.self, configurations: localConfig ) if let iCloudContainer = try? ModelContainer( for: schema, migrationPlan: MigrationPlan.self, configurations: cloudConfig ) { modelContainer = iCloudContainer } else { modelContainer = try ModelContainer( for: schema, migrationPlan: MigrationPlan.self, configurations: localConfig ) } } catch { fatalError("Failed to create the model container: \(error)") }
Dec ’24
Reply to AppIntents Parameter requestValue not working in iOS 18 when parameter is not in parameterSummary
The issue still exists on iOS18 and beta 18.1. Entity import AppIntents struct CategoryEntity: AppEntity { var id: UUID var name: String init(name: String) { self.id = UUID() self.name = name } var displayRepresentation: DisplayRepresentation { DisplayRepresentation(title: LocalizedStringResource(stringLiteral: name)) } static let typeDisplayRepresentation: TypeDisplayRepresentation = "Category" static let defaultQuery = CategoryEntityQuery() } struct CategoryEntityQuery: EntityQuery { func entities(for identifiers: [CategoryEntity.ID]) async throws -> [CategoryEntity] { SampleData.categories } func suggestedEntities() async throws -> [CategoryEntity] { SampleData.categories } } struct SampleData { static var categories: [CategoryEntity] = [ .init(name: "Category 1"), .init(name: "Category 2"), .init(name: "Category 3"), .init(name: "Category 4"), .init(name: "Category 5") ] } Intent import AppIntents struct Intent: AppIntent { static let title: LocalizedStringResource = "Intent" static var parameterSummary: some ParameterSummary { Summary("Test \(\.$category)") { /// $hidden.requestValue() functions properly when it is included in the ParameterSummary // \.$hidden } } @Parameter(title: "Visible Category") var category: CategoryEntity? @Parameter(title: "Hidden Category") private var hidden: CategoryEntity? @MainActor func perform() async throws -> some ReturnsValue<CategoryEntity?> { let visible = try? await $category.requestValue("Select visible category") // Works as expected var hidden: CategoryEntity? /// Fails since iOS 18 because $hidden is not part of the ParameterSummary do { hidden = try await $hidden.requestValue("Select hidden category") } catch { /// Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 11647 on anonymousListener or serviceListener was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo={NSDebugDescription=The connection from pid 11647 on anonymousListener or serviceListener was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.} print(error) } let value = hidden ?? visible print("Category: \(value?.name ?? "none")") return .result(value: value) } }
Oct ’24