Skip to content

feat(app): 알림 탭을 Nav3 앱 셸에서 목적지 탭으로 잇는다 (#1795) - #2309

Merged
OnlyReadOneBook merged 7 commits into
developfrom
feat/1795-notification-entry-nav3
Oct 25, 2026
Merged

OnlyReadOneBook merged 7 commits into
developfrom
feat/1795-notification-entry-nav3

Conversation

@OnlyReadOneBook

@OnlyReadOneBook OnlyReadOneBook commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

핵심 파일

  • NotificationEntryEffect.kt: 인증 확인, 목적지 탭 변환, 이동 후 큐 소비
  • AppNavigation.kt: Nav3 앱 셸의 알림 소비와 재진입 시 탭 NavHost 수명 정합
  • NotificationNavigationAndroidTest.kt: 로그아웃 관문, 로그인 후 이동, 중복 전달, 백그라운드 진입
  • NotificationColdStartAndroidTest.kt: 종료 상태의 최초 인텐트 수신과 로그인 상태의 목적지 도달

변경 내용

알림을 눌러 들어온 목적지를 Nav3 앱 셸이 읽어 바텀바의 해당 탭으로 이동합니다. 로그아웃 중에는 큐를 유지하고, 로그인과 바텀바 스택 진입이 확인된 뒤 이동합니다. 이동 후 발생 식별자를 소비해 같은 알림을 다시 처리하지 않습니다. 목적지 변환은 같은 파일에서만 사용하는 private 함수입니다.

탭 NavHost가 내려간 뒤에도 이전 컨트롤러를 재사용하면 ViewModelStore가 달라져 재진입 시 크래시가 발생했습니다. 기존 Nav2 탭 컨트롤러를 Nav3 엔트리와 같은 수명으로 다시 만들어 이 경로를 처리합니다. 이동은 기존 바텀바 클릭의 백스택 계약을 사용합니다.

FCM 서버 payload의 키와 발송 방식은 BE#261이 확정할 범위입니다. 이번 변경은 앱 내부 목적지 계약을 소비하며 서버 키를 추가하지 않습니다. #1111의 cold 목적지 단언은 추가하지만 서버 계약과 실기기 FCM 도달 검증은 남아 있습니다.

검증

  • 로컬 :app:compileDebugKotlin, :app:compileDebugAndroidTestKotlin, :app:ktlintCheck 통과
  • 변경 전 HEAD 97a0bf9a2의 CI API 34 산출물에서 알림 계측 4건 통과 확인
  • 이번 HEAD는 아래 6개 계측 테스트와 필수 CI로 검증합니다.
  • 화면 자산과 Compose Preview 변경 없음

CI Test Plan

{
  "androidTest": {
    "mode": "selected",
    "reason": "Activity의 cold·warm·background 알림 진입과 인증 관문, 목적지 탭 이동, 단회 소비를 API 34에서 검증한다.",
    "tests": [
      {
        "path": "app/src/androidTest/java/com/afternote/afternote_fe/NotificationNavigationAndroidTest.kt",
        "selector": "com.afternote.afternote_fe.NotificationNavigationAndroidTest#warmNotificationWhileLoggedOut_isReceivedWithoutBypassingOnboarding",
        "device": "api34"
      },
      {
        "path": "app/src/androidTest/java/com/afternote/afternote_fe/NotificationNavigationAndroidTest.kt",
        "selector": "com.afternote.afternote_fe.NotificationNavigationAndroidTest#warmNotificationWhileLoggedIn_isReceivedWithoutRecreatingActivity",
        "device": "api34"
      },
      {
        "path": "app/src/androidTest/java/com/afternote/afternote_fe/NotificationNavigationAndroidTest.kt",
        "selector": "com.afternote.afternote_fe.NotificationNavigationAndroidTest#backgroundNotification_resumesSameActivityAndNavigatesToDestination",
        "device": "api34"
      },
      {
        "path": "app/src/androidTest/java/com/afternote/afternote_fe/NotificationNavigationAndroidTest.kt",
        "selector": "com.afternote.afternote_fe.NotificationNavigationAndroidTest#sameRequestCode_differentSourceAndOccurrenceKeepLatestExtras",
        "device": "api34"
      },
      {
        "path": "app/src/androidTest/java/com/afternote/afternote_fe/NotificationColdStartAndroidTest.kt",
        "selector": "com.afternote.afternote_fe.NotificationColdStartAndroidTest#coldPendingIntentLaunch_enqueuesInitialNotificationEntry",
        "device": "api34"
      },
      {
        "path": "app/src/androidTest/java/com/afternote/afternote_fe/NotificationColdStartAndroidTest.kt",
        "selector": "com.afternote.afternote_fe.NotificationColdStartAndroidTest#coldPendingIntentLaunchWhileLoggedIn_opensDestination",
        "device": "api34"
      }
    ]
  }
}

Closes #1795
Refs #1111

@github-actions github-actions Bot added the android-test PR head에서 Android Managed Device 계측 테스트 실행 label Oct 22, 2026
@OnlyReadOneBook
OnlyReadOneBook added this pull request to the merge queue Oct 25, 2026
Merged via the queue into develop with commit ba845c7 Oct 25, 2026
25 of 26 checks passed
@OnlyReadOneBook
OnlyReadOneBook deleted the feat/1795-notification-entry-nav3 branch October 25, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android-test PR head에서 Android Managed Device 계측 테스트 실행

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(platform): 알림 목적지 이동을 앱 루트에 결선한다 — #1727 에서 Nav3 재작성분 분리

2 participants