Files
honeyDueKMP/iosApp/iosApp/Extensions/Notification+Names.swift
Trey t 2965ec4031 Add actionable push notifications for iOS and Android
iOS:
- Add notification categories with action buttons (complete, view, cancel, etc.)
- Handle notification actions in AppDelegate with API calls
- Add navigation to specific task from notification tap
- Register UNNotificationCategory for each task state

Android:
- Add NotificationActionReceiver BroadcastReceiver for handling actions
- Update MyFirebaseMessagingService to show action buttons
- Add deep link handling in MainActivity for task navigation
- Register receiver in AndroidManifest.xml

Shared:
- Add navigateToTaskId parameter to App for cross-platform navigation
- Add notification observers in MainTabView/AllTasksView for refresh

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 14:23:25 -06:00

12 lines
465 B
Swift

import Foundation
extension Notification.Name {
// Navigation notifications from push notification actions
static let navigateToTask = Notification.Name("navigateToTask")
static let navigateToEditTask = Notification.Name("navigateToEditTask")
static let navigateToHome = Notification.Name("navigateToHome")
// Task action completion notification (for UI refresh)
static let taskActionCompleted = Notification.Name("taskActionCompleted")
}