-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: fcm 분기처리 수정 #115
fix: fcm 분기처리 수정 #115
Conversation
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.
await send(.inner(.linkCopySuccess(url)), animation: .pokitSpring) | ||
} | ||
}, | ||
.publisher { |
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.
publisher가 있었군요, 뭔가 앞으로도 유용할것 같네여
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.
수정했습니다
수고하셨습니다!! 1.0.0이라 테플에 안올라가는거 같아서 1.0.1로 바꾸고 머지 하겠습니닷! |
8e2fa3f
to
15c092f
Compare
#️⃣연관된 이슈
#111
📝작업 내용
�푸시알람을 통해 앱을 진입하는 경우의 분기처리를 추가했습니다.
분기처리는 MainTabFeature에서 담당하게 됩니다.
TCA의 Shared를 통해 이를 쉽게 관리 할 수 있습니다. 해당 프로퍼티는 총 2가지의 파일에서 추적합니다.
::
AppDelegateFeature
,MainTabFeature
푸시를 누르면 isPushTapped의 값을 true로 바꿉니다.
Shared의 option을 inMemory로 설정했기 때문에 앱이 실행되는 순간에만 값이 남아있습니다.
당연하게도
PushTapped
라는 키값을 두 가지 파일에서 같이 사용하고 있기 때문에 flag가 바뀐 것을 MainTabFeature도 알아차릴 수 있습니다.publisher를 통해 바뀐 값을 감지할 수 있습니다. 하지만 이는 앱 실행중에 알아차릴 수 있는 것 뿐이고, 푸시를 통해 앱을 실행하는 경우에는 알아차릴 수 없습니다. 따라서 상단 if문을 추가해 AppDelegateFeature로부터 바뀐 값을 통해 알림함으로 이동되게 만들었습니다.
이후 알림함으로 이동 될 때 flag를 꺼주시면 됩니다.
스크린샷 (선택)
앱 사용중일 때
앱 실행할 때
💬리뷰 요구사항(선택)