Skip to content

[Feat] FCM 기반 사용자 알림 기능 구현 - #37

Merged
jae-2024 merged 9 commits into
mainfrom
Feat/#34/notifications
Feb 10, 2026
Merged

jae-2024 merged 9 commits into
mainfrom
Feat/#34/notifications

Conversation

@jae-2024

Copy link
Copy Markdown
Contributor

목적

  • Firebase Cloud Messaging(FCM)을 활용해 사용자에게 실시간 푸시 알림을 제공합니다.
  • 게임 참가 승인/거절, 게임 시작 시점에 푸시 알림 + 앱 내 알림을 함께 제공해
  • 알림 중복 방지

알림 흐름

  • 사용자 단말에서 FCM 토큰 발급
  • 서버에 FCM 토큰 저장
  • 특정 이벤트 발생 (참가 승인/거절, 게임 시작)
  • 서버에서 FCM 푸시 전송
  • 동시에 웹앱 내 알림(Notification) 저장
  • 사용자는 웹앱 내 알림 목록 조회 및 삭제 가능

세부 설명

참가 승인 및 거절 알림은 사용자의 액션에 의해 발생하는 이벤트 기반 로직으로, 승인/거절 시점에 즉시 알림을 전송하도록 구현했습니다.
반면, 게임 시작 알림은 특정 시각 도래 여부를 서버가 판단해야 하므로 스케줄러 기반으로 처리했습니다.

  • GET /api/notifications
    로그인한 사용자의 알림을 최신순으로 조회합니다.
  • DELETE /api/notifications
    사용자의 모든 알림을 일괄 삭제합니다.
  • POST /api/members/fcm-token
    사용자의 FCM 토큰을 서버에 저장합니다.
    로그인 이후 토큰 갱신 시 재저장 가능합니다.
  • DELETE /api/members/fcm-token
    로그아웃 시 사용자의 FCM 토큰을 삭제합니다.

@jae-2024 jae-2024 self-assigned this Feb 10, 2026
@jae-2024 jae-2024 added the ✨Feature 기능 개발 label Feb 10, 2026
@jae-2024 jae-2024 linked an issue Feb 10, 2026 that may be closed by this pull request
6 tasks done
@jae-2024
jae-2024 merged commit c61277d into main Feb 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] FCM 기반 알림 기능 구현

1 participant