Notification Deep Link Handler
Component Detail
Service Layer
medium complexity
mobile
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Resolves a notification's payload to the correct route and navigates the user to the related entity (assignment, certificate, activity, peer mentor profile). Uses the notification type and entity ID from the JSONB payload to construct the target route. Handles cases where the target entity has been deleted or the user no longer has access.
notification-deep-link-handler
Responsibilities
- Parse notification payload JSONB to extract entity type and ID
- Resolve entity type to corresponding app route
- Execute navigation to the target entity screen
- Handle deleted or inaccessible target entities gracefully
- Mark notification as read on successful navigation
Interfaces
handleNotificationTap(Notification)
resolveRoute(NotificationType, String entityId)
navigateToEntity(BuildContext, AppRoute)
handleInvalidEntity(Notification)
buildRouteArguments(Notification)