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>
This commit is contained in:
22
iosApp/push_test_payloads/task_overdue.apns
Normal file
22
iosApp/push_test_payloads/task_overdue.apns
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"Simulator Target Bundle": "com.tt.casera.CaseraDev",
|
||||
"aps": {
|
||||
"alert": {
|
||||
"title": "Task Overdue",
|
||||
"subtitle": "Test Residence",
|
||||
"body": "Replace HVAC Filter is overdue"
|
||||
},
|
||||
"sound": "default",
|
||||
"badge": 1,
|
||||
"category": "TASK_ACTIONABLE",
|
||||
"mutable-content": 1,
|
||||
"thread-id": "task-38"
|
||||
},
|
||||
"task_id": 38,
|
||||
"task_name": "Replace HVAC Filter",
|
||||
"residence_id": 1,
|
||||
"residence_name": "Test Residence",
|
||||
"notification_type": "task_overdue",
|
||||
"button_types": ["edit", "complete", "cancel", "mark_in_progress"],
|
||||
"is_premium": true
|
||||
}
|
||||
Reference in New Issue
Block a user