로컬 푸시 구현#93
Merged
Merged
Conversation
enebin
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
매일 저녁 21:00에 식단 기록을 유도하는 로컬 푸시 알림(daily reminder) 기능을 추가합니다.
알림 권한 상태에 따라 자동으로 등록/취소되며, 기존 분석 완료 푸시와의 충돌 없이 분리 처리됩니다.
작업 내용
is_local_notification)과 매일 리마인더(daily_reminder) 알림 분기 분리LocalNotificationScheduler,ScheduleDailyReminderUseCase단위 테스트 추가변경 파일
LocalNotificationScheduling.swiftScheduleDailyReminderUseCase.swiftLocalNotificationScheduler.swiftUNCalendarNotificationTrigger기반 구현SceneDelegate.swiftLocalNotificationScheduling,ScheduleDailyReminderUseCaseDI 등록AppFlowController.swifttryScheduleDailyReminder()호출AppDelegate.swiftdaily_reminder알림 분기 추가, 포그라운드 배너 미표시InfoPlist+Templates.swiftNSUserNotificationsUsageDescription문구 업데이트ScheduleDailyReminderUseCaseTests.swiftMock/MockLocalNotificationScheduler.swiftMock/MockNotificationAuthorizationProvider.swiftLocalNotificationSchedulerTests.swiftMock/MockUserNotificationCenter.swift아키텍처
Clean Architecture 의존성 방향을 준수합니다:
Domain ← Data ← AppLocalNotificationScheduling프로토콜만 노출,UserNotifications프레임워크 의존 없음LocalNotificationScheduler는 내부UserNotificationCentering추상화를 통해UNUserNotificationCenter를 분리, 테스트에서 Mock으로 교체 가능SceneDelegate에서 등록,AppFlowController에서 resolve동작 흐름
테스트 플랜
tuist test— Data, Domain 테스트 통과 확인daily_reminderidentifier 확인