[#678] 로그인 직후 FCM token 동기화 누락을 해결한다#684
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes persistent caching of the FCM token hash from FCMTokenSyncHandler to fix synchronization issues, simplifies the token update logic, and adds APNs registration requests when the app enters the foreground. The review feedback recommends introducing an in-memory cache to prevent redundant token synchronization API calls during frequent foreground entries within the same session.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
🔗 연관된 이슈
🎯 의도
📝 작업 내용
📌 요약
UserDefaults기반 hash 저장 및 조회 제거AppDelegate에서 내부 notification으로 변환하도록 조정🔍 상세
FCMTokenSyncHandler가 같은 FCM token이라도 sync 이벤트마다updateFCMToken을 호출하도록 변경didRequestAPNsRegistration내부 notification 추가AppDelegate.applicationWillEnterForeground에서 foreground 복귀 이벤트를 APNs 등록 요청으로 중계📸 영상 / 이미지 (Optional)