Add iOS Shortcuts/Siri intents, local send-reminder notifications, stable client picker with last-client defaults, account refresh/remove, and softer session handling on unauthorized API responses. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
560 B
Swift
22 lines
560 B
Swift
import AppIntents
|
|
import UIKit
|
|
|
|
@available(iOS 16.0, *)
|
|
struct OpenTimerIntent: AppIntent {
|
|
static var title: LocalizedStringResource = "Open Time Clock"
|
|
static var description = IntentDescription("Open the beenvoice time clock.")
|
|
static var openAppWhenRun: Bool = false
|
|
|
|
func perform() async throws -> some IntentResult {
|
|
guard let url = URL(string: "beenvoice://timer") else {
|
|
return .result()
|
|
}
|
|
|
|
await MainActor.run {
|
|
UIApplication.shared.open(url)
|
|
}
|
|
|
|
return .result()
|
|
}
|
|
}
|