Skip to content

Conversation

@donut74
Copy link
Collaborator

@donut74 donut74 commented Jan 14, 2026

⚙️ Related ISSUE Number

#110



📄 Work Description

작업 내용

1. Firebase 설정

  • Android: googleServicesFile 설정 추가 (./google-services.json)
  • iOS: googleServicesFile 설정 추가 (./GoogleService-Info.plist)

2. 푸시 알림 기능

  • FCM 토큰 등록: app/(tabs)/_layout.tsx에서 사용자 정보 로드 시 자동 등록
    • registerPushToken 함수를 useEffect에서 호출

3. 회원 탈퇴 기능 개선

  • 탈퇴 가능 여부 확인 API: validateWithdrawal 함수 추가
    • /api/v1/user/me/withdrawal/validate 엔드포인트 사용
    • canWithdraw 값 확인
  • 탈퇴 API: deleteUserMe 함수 수정
    • /api/v1/user/me DELETE 엔드포인트 사용
  • 에러 처리 개선:
    • 500 에러: 서버 내부 오류 메시지 표시
    • 진행 중인 파티가 있는 경우: 명확한 안내 메시지 표시


💬 To Reviewers

실제 기기 구분하는 부분은 주석 처리 해둬서 토큰은 받아지는데 알림 자체는 시뮬레이터에서는 안보이더라구요...
일단 테스트 api로 userId로 api 요청시에 성공값을 받아서(해당 부분은 성공 후 삭제했습니다) pr 올립니다!

리마인드 관련 알림은 포그라운드(실행 중)에서 나오면 안되는데 이부분은 값을 받을 수 있는게 없어서
추후에 서버 알림 개발 완료되면 리마인드 타입 추가해달라고 요청할 예정입니다!!
(기본으로 포그라운드 설정 추가해두었습니다)

또한 알림 옵션 기능도 개발되지 않아서 설정에서 주석 처리 해두었습니다!



🔗 Reference

https://docs.expo.dev/versions/latest/sdk/notifications/
https://docs.expo.dev/versions/latest/sdk/device/

https://smiling-geese-a34.notion.site/2e3733a3af15807eaf31d0455465f6af
-> 인원 모집완료랑 안읽은 채팅 리마인드 뺴고 다 구현 완료 됐다고 합니다!

@donut74 donut74 requested a review from DandelionQZ January 14, 2026 15:10
@donut74 donut74 self-assigned this Jan 14, 2026
@donut74 donut74 linked an issue Jan 14, 2026 that may be closed by this pull request
3 tasks
Copy link
Collaborator

@DandelionQZ DandelionQZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다 수고하셨어요!

Comment on lines 61 to 69
/**
* 탈퇴 가능 여부 확인 API
* @returns canWithdraw 값 (true: 탈퇴 가능, false: 탈퇴 불가능)
*/
export const validateWithdrawal = async (): Promise<boolean> => {
const res = await privateAxios.get(ENDPOINT.USER.WITHDRAWAL_VALIDATE);
return res.data?.data?.canWithdraw;
};

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

67번 줄에 옵셔널 체이닝 붙인 이유가 궁금해요 반환 타입을 boolean으로 해두신거 보면 void로 오는 거 같지는 않아서 제가 모르는게 있는지 궁금합니다!

@donut74 donut74 merged commit 80c80eb into develop Jan 15, 2026
@donut74 donut74 deleted the feat/110-알림-api-연결 branch January 15, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 알림 api 연결

3 participants