[IDLE-447] 유저가 알림확인창에서 내재된 액션을 수행할 수 있다 #90
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
변경된 점
앱내 딥링크 처리
알림화면에서 해당 알림에 대한 딥링크 정보를 추출할 수 있습니다.
해당 정보를 바탕으로 원하는 화면을 곧바로 표시할 수 있었습니다. 하지만, 외부 딥링크와 똑같이 해당 동작을 처리하면 아래화면과 같이 다소 부자연스러운 화면 네비게이션이 발생합니다.
이전페이지인 알림페이지로
돌아갈 수 없습니다.
자연스러운 애니메이션을 적용할 수 없습니다.
✅ 자연스러운 애니메이션을 적용가능
코드레벨 설명
딥링크를 파싱할 때, 상위 딥링크의 코디네이터가 아니라 최상위 코디네이터(AppCoordinator)를 전달받는 경우 AppCoordinator의 자식 Coordinator에서 현재 딥링크를 처리할 수 있는 코디네이터를 탐색합니다.
즉, 새로운 화면을 다시 구성하는 게 아닌, 기존에 존재하는 화면 계층을 그대로 활용하는 방법을 사용합니다.
위 코드는 PostApplicantDeeplink매서드의 일부입니다. 해당 딥링크를 처리할 수 있는 코디네이터인 CenterMainPageCoordinator를 전달받지 못한 경우 AppCoordinator에서 CenterMainPageCoordinator를 탐색하여 사용합니다.