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

ios 웹뷰 에서 발생하는 모달 다이어로그 콜백 #436

Open
8 tasks
Nautilus0409 opened this issue Sep 1, 2023 · 5 comments
Open
8 tasks

ios 웹뷰 에서 발생하는 모달 다이어로그 콜백 #436

Nautilus0409 opened this issue Sep 1, 2023 · 5 comments
Assignees
Labels
question Issue type : Question WebView Service : WebView

Comments

@Nautilus0409
Copy link

Nautilus0409 commented Sep 1, 2023

Service

  • [v] WebView
  • AssetManagement
  • Communicator
  • LogViewer
  • Manager
  • UI
  • Profiler
  • Adapter
  • DLST

Version

Write the version that you are currently using.

Summary

ios 에서 웹뷰 에서 발생하는 모달 다이얼로그 의 입력 콜백을 받을 수 있는 방법이 있을까요?

아래 사진의 표시한 취소 버튼을 눌렀을때 콜백 을 받고싶습니다.

Screenshots

image

Additional context

Add any other context about the problem here.

@Nautilus0409 Nautilus0409 added the question Issue type : Question label Sep 1, 2023
@taehyeon-nhn taehyeon-nhn self-assigned this Sep 1, 2023
@taehyeon-nhn taehyeon-nhn added the WebView Service : WebView label Sep 1, 2023
@taehyeon-nhn
Copy link
Contributor

안녕하세요. @Nautilus0409 님.

전달해 주신 기능에 대해 확인해 보겠습니다.
스크린샷을 보면 애플로그인의 디바이스 팝업으로 보이는데요.
WebView를 통해 해당 웹페이지에 접근할 수 있는 URL을 공유해 주시면 감사하겠습니다.

추가로 개발 환경에 대한 내용 공유 부탁드립니다.

  • Unity Editor version
  • Target SDK
  • Target minimum iOS Version

감사합니다.

@Nautilus0409
Copy link
Author

답변 감사합니다.

Unity Editor version : 2021.3.16f1

Target SDK : 33

Target minimum iOS Version : 12

https://appleid.apple.com/auth/authorize?response_type=code&v=1.0.0&response_mode=form_post&client_id=com.superplanet.archmage.signin&redirect_uri=https://ntusdev.com/auth/apple&state=

해당 링크로 진행해보시곘습니까?

@Nautilus0409
Copy link
Author

GpmWebView.ShowUrl(
url,
new GpmWebViewRequest.Configuration()
{
style = GpmWebViewStyle.FULLSCREEN,
isClearCookie = true,
isClearCache = true,
isNavigationBarVisible = true,
orientation = GpmOrientation.PORTRAIT,
navigationBarColor = "#000000",
title = "Apple 계정으로 로그인",
isBackButtonVisible = false,
isForwardButtonVisible = false,
supportMultipleWindows = false,
#if UNITY_IOS
contentMode = GpmWebViewContentMode.MOBILE
#endif
},
OnCallback);

이렇게 출력했는데요, 원래 ios 환경에선 title이 출력이 안되나요? 닫기 버튼도 나오지 않아서요.

@taehyeon-nhn
Copy link
Contributor

안녕하세요. @Nautilus0409 님.

전달해 주신 Url로 접근해 로그인을 진행했을 때, 스크린샷의 팝업이 노출되지는 않고, Json 형태의 응답값이 호출되었습니다.

아래 링크를 먼저 참고 부탁드립니다.
Apple 로그인 지원
Apple 로그인 개요

WebView title및 닫기 버튼이 나오지 않는 경우 가이드 문서의 GPMWebView.bundle 항목 설정 추가 부탁드립니다.

추가 문의 사항이 있으시면 언제든 편하게 연락 부탁드립니다.
감사합니다.

@Nautilus0409
Copy link
Author

로그인이 되어있는 iOS 디바이스에서 시도해야 해당현상을 확인 할 수 있습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue type : Question WebView Service : WebView
Projects
None yet
Development

No branches or pull requests

2 participants