-
Notifications
You must be signed in to change notification settings - Fork 0
feat/#110: 알림 api 연결 #117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/#110: 알림 api 연결 #117
The head ref may contain hidden characters: "feat/110-\uC54C\uB9BC-api-\uC5F0\uACB0"
Conversation
DandelionQZ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다 수고하셨어요!
| /** | ||
| * 탈퇴 가능 여부 확인 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; | ||
| }; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
67번 줄에 옵셔널 체이닝 붙인 이유가 궁금해요 반환 타입을 boolean으로 해두신거 보면 void로 오는 거 같지는 않아서 제가 모르는게 있는지 궁금합니다!
⚙️ Related ISSUE Number
#110
📄 Work Description
작업 내용
1. Firebase 설정
googleServicesFile설정 추가 (./google-services.json)googleServicesFile설정 추가 (./GoogleService-Info.plist)2. 푸시 알림 기능
app/(tabs)/_layout.tsx에서 사용자 정보 로드 시 자동 등록registerPushToken함수를useEffect에서 호출3. 회원 탈퇴 기능 개선
validateWithdrawal함수 추가/api/v1/user/me/withdrawal/validate엔드포인트 사용canWithdraw값 확인deleteUserMe함수 수정/api/v1/user/meDELETE 엔드포인트 사용💬 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
-> 인원 모집완료랑 안읽은 채팅 리마인드 뺴고 다 구현 완료 됐다고 합니다!