Skip to content
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

#205 : 프로필 수정 푸시 클릭 동작 구현해요 #207

Merged
merged 12 commits into from
Nov 26, 2024

Conversation

jeongjaino
Copy link
Member

1. 📄 관련된 이슈 및 소개

#205 : 프로필 수정 푸시 클릭 동작 구현해요

2. 🔥 변경된 점

다음 버전부터 서버에 앱 버전을 전송해요 !

로그인 / 회원가입시에 앱 버전을 전송해요,

  1. (+ 회원가입)로그인 API 내 version, os 파라미터 추가
  • os의 경우 안드로이드와 iOS 버전이 상이하기 때문
  1. 서버에서 RemoteConfig에서 플랫 폼별 최신 버전을 받아옴
  • 서버에서 어떤 버전이 최신인 지 모르기 때문
  1. 서버에서 클라이언트 버전과 RemoteConfig 값 확인 후 푸시 메세지 전송
  2. 클라이언트에서 푸시 메세지 수신 후 프로필 수정 화면으로 리다이렉션

푸시 알림 수신시, 프로필 설정화면으로 전환 구현했습니다 !

3. ✅ 필수 체크 사항

로그인 시 사용하는 모델 변경

기존 로그인시에 사용하는 도메인 모델이 fcmToken / fcmTokenDto였는데요 !

presentation 계층으로부터 받아온 앱 버전을 프로퍼티에 추가해야 해서, fcmToken 클래스에 들어가는건 부적절하다고 생각해서,

SignUp / SignUpDto 기반으로 새로 SignIn 모델을 새로 구성했어요 !

naivagetUp && 뒤로가기 동작 확인했습니다 !

  • 전체 탭 홈화면으로 이동

4. 📸 작업물 사진 공유(선택)

회원가입 / 로그인시 적재되는 앱버전 확인했고, 서버에서도 정상적으로 적재되는 점 확인했습니다.
관련해서 로그 기록이랑 동영상 첨부드립니다 !
'
스크린샷 2024-11-23 오후 10 47 01

스크린샷 2024-11-23 오후 10 21 13
Screen_recording_20241124_035645.webm

5. 💡알게된 혹은 궁금한 사항

@jeongjaino jeongjaino added 🌱기능🌱 새로운 기능을 추가해요 ! 🍻제이콥🍻 24기 정진호 🔥리뷰 기다리는 중🔥 PR을 올리고 코드리뷰를 기다리고 있는 상태입니다. labels Nov 24, 2024
@jeongjaino jeongjaino self-assigned this Nov 24, 2024
@jeongjaino jeongjaino linked an issue Nov 24, 2024 that may be closed by this pull request
2 tasks
Copy link
Contributor

@flash159483 flash159483 left a comment

Choose a reason for hiding this comment

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

한개만 확인용

viewModelScope.launch {
autoLoginUseCase(versionCode).let {
autoLoginUseCase(state.versionName).let {
Copy link
Contributor

Choose a reason for hiding this comment

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

이걸 state에 저장해야될 이유가 있나요? uiState에 넣기에는 ui에는 아무런 영향을 주지 않다 보니깐 좀 애매한데요

Copy link
Member Author

Choose a reason for hiding this comment

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

오 생각해보니까 그렇네요 !

UiState에서 사용되지 않는데, 굳이 담아둘 필요가 없는 것 같아요 !

다음에 앱 버전이랑 코드 같은 점들 캐싱해서 가져오면 좋을 것 같은데요, 일단 뷰모델 내 변수에 담아두는 방식으로 수정했습니다 !

Copy link
Contributor

@flash159483 flash159483 left a comment

Choose a reason for hiding this comment

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

가즈아

@jeongjaino jeongjaino merged commit 294ca00 into develop Nov 26, 2024
6 checks passed
@flash159483 flash159483 deleted the feature/jaino/#205 branch November 30, 2024 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱기능🌱 새로운 기능을 추가해요 ! 🍻제이콥🍻 24기 정진호 🔥리뷰 기다리는 중🔥 PR을 올리고 코드리뷰를 기다리고 있는 상태입니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WS-450 [FEATURE]: 프로필 수정 푸시 클릭 동작 구현해요
2 participants