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.

Feature: In-app Notification Centre

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)

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (1)

Data entities managed by this component

API Contract

View full contract →
REST /api/v1/notification-deep-links 6 endpoints
GET /api/v1/notification-deep-links
GET /api/v1/notification-deep-links/:id
POST /api/v1/notification-deep-links/resolve
POST /api/v1/notification-deep-links
PUT /api/v1/notification-deep-links/:id
DELETE /api/v1/notification-deep-links/:id