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

[IDLE-447] 유저가 알림확인창에서 내재된 액션을 수행할 수 있다 #90

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

J0onYEong
Copy link
Contributor

변경된 점

  • 알림 화면에서 알림을 클릭하면, 알림과 관련된 동작을 수행할 수 있다.

앱내 딥링크 처리

알림화면에서 해당 알림에 대한 딥링크 정보를 추출할 수 있습니다.
해당 정보를 바탕으로 원하는 화면을 곧바로 표시할 수 있었습니다. 하지만, 외부 딥링크와 똑같이 해당 동작을 처리하면 아래화면과 같이 다소 부자연스러운 화면 네비게이션이 발생합니다.

⚠️ 내부 외부 딥링크 동일 로직 ✅ 내부 딥링크 전용 로직
Root부터 네비게이션을 새롭게 시작해서
이전페이지인 알림페이지로
돌아갈 수 없습니다.
자연스러운 애니메이션을 적용할 수 없습니다.
✅ 이전페이지로 돌아갈 수 있습니다.
✅ 자연스러운 애니메이션을 적용가능
  • Root부터 네비게이션을 새롭게 시작해 알림페이지로 돌아갈 수 없습니다.
  • 자연스러운 애니메이션을 적용할 수 없습니다.

코드레벨 설명

스크린샷 2024-10-17 오후 12 28 45

딥링크를 파싱할 때, 상위 딥링크의 코디네이터가 아니라 최상위 코디네이터(AppCoordinator)를 전달받는 경우 AppCoordinator의 자식 Coordinator에서 현재 딥링크를 처리할 수 있는 코디네이터를 탐색합니다.

즉, 새로운 화면을 다시 구성하는 게 아닌, 기존에 존재하는 화면 계층을 그대로 활용하는 방법을 사용합니다.

위 코드는 PostApplicantDeeplink매서드의 일부입니다. 해당 딥링크를 처리할 수 있는 코디네이터인 CenterMainPageCoordinator를 전달받지 못한 경우 AppCoordinator에서 CenterMainPageCoordinator를 탐색하여 사용합니다.

@J0onYEong J0onYEong changed the title [IDLE-447] 유저가 알림확인창에서 내제된 액션을 수행할 수 있다 [IDLE-447] 유저가 알림확인창에서 내재된 액션을 수행할 수 있다 Oct 17, 2024
@J0onYEong J0onYEong merged commit 23b5391 into develop Oct 17, 2024
1 check passed
@J0onYEong J0onYEong deleted the feature/action_in_NotificationPage branch October 17, 2024 03:46
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.

1 participant