Files
workavia-mail-front/docs/adr/0057-ios-fcm-routing.md
2025-04-21 03:23:14 -07:00

914 B

57. iOS FCM routing

Date: 2024-12-05

Status

Accepted

Context

  • Notification from FCM contains mutable-content: true
  • Those notification will be transfered to Notification Service Extension (See here) whether the app is in background or foreground
  • Due to the app is in foreground, no notification will be shown
  • Due to NSE handle the data, FCM on Flutter side cannot handle it

Decision

  • We check if the app is in foreground or not
    • If the app is in foreground, we will not modify the payload and route the payload to FCM foreground method channel
    • If the app is in background or terminated, we will keep the current implementation

Consequences

  • Twake Mail iOS app will get latest updates when app is in foreground