Service Layer medium complexity mobile
0
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Client-side service that intercepts incoming push notification tap events and routes the user directly to the relevant in-app screen based on the entity_type and entity_id fields in the notification data payload. Handles routing both when the app is foregrounded and when launched from a terminated or background state via onBackgroundMessage.

Feature: Push Notifications

deep-link-router

Responsibilities

  • Parse entity_type and entity_id from notification data payload
  • Resolve the correct named route for each entity type
  • Navigate to the target screen using Flutter Navigator
  • Handle app cold-start deep-link from notification tap

Interfaces

handleNotificationTap(remoteMessage)
resolveRoute(entityType, entityId)
navigateToEntity(entityType, entityId)
handleBackgroundMessage(remoteMessage)
handleInitialMessage()

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component