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

iOS13 이상에서 모달로 뜬 결제모듈을 닫을 때 콜백이 안오는 문제 #97

Open
luster-tin opened this issue Mar 23, 2023 · 0 comments

Comments

@luster-tin
Copy link

luster-tin commented Mar 23, 2023

image

IOS13 이상에서는 모달 방식이 카드? 형태의 모달로 겹쳐지는 형태로 강제 적용됩니다.
여기서 X 버튼을 눌러 닫으면 결제 취소에 대한 콜백이 잘 오지만,
모달을 아래로 스와이프해서 닫아버리면 콜백이 동작하지 않습니다.

일단 원천적인 해결 방법은 아니지만,
iamportCapacitorPlugin.swift
파일을 수정해서 강제로 풀스크린으로 뜨게 할 수 있습니다.
해당 파일에서
self.iamportViewController?.modalPresentationStyle = .fullScreen;
한 줄을 추가해주셔서 강제로 풀스크린으로 뜨면 모달을 아래로 스와이프해도 닫혀지지 않아 강제로 막을 수는 있습니다.

self.iamportViewController?.delegate = self;
self.iamportViewController?.modalPresentationStyle = .fullScreen;
self.bridge?.viewController?.present(self.iamportViewController!, animated: true, completion: nil)

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

No branches or pull requests

1 participant