Ship full-featured mobile clients with auth, payments, QRs, push notifications, and iOS polish including Figtree typography, app icons, and QR previews. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import Foundation
|
||||
|
||||
/// Routes notification taps into the in-app notifications inbox (mirrors Android `open_notifications`).
|
||||
@MainActor
|
||||
final class PushNotificationRouter: ObservableObject {
|
||||
static let shared = PushNotificationRouter()
|
||||
|
||||
@Published var shouldOpenInbox = false
|
||||
|
||||
func openInbox() {
|
||||
shouldOpenInbox = true
|
||||
}
|
||||
|
||||
func consumeOpenInboxRequest() {
|
||||
shouldOpenInbox = false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user