nhn / gpm.unity

A brand of NHN providing free services required for game development.
https://gameplatform.nhncloud.com/en/
Other
336 stars 44 forks source link

showURL 웹뷰에서 FullScreen 모드 에서 Close 버튼을 누르면 회전 하는 현상 #531

Open catchudev opened 2 weeks ago

catchudev commented 2 weeks ago

Service

Version

Manager ver 2.2.6 Common ver 2.4.0 WebView ver 2.1.0

Describe the bug

웹뷰에서 FullScreen 모드에서 스마트폰을 회전한상태로 Close 버튼을 누르면 유니티 화면이 회전하는 버그

To Reproduce

웹뷰 실행 -> 세로 형태 스마트폰을 가로로 회전 ( 설정에서 회전설정 X ) -> 웹뷰 CloseButton 터치 -> 웹뷰가 닫히면서 유니티 화면이 회전

Expected behavior

유니티도 세로모드 고정이고 웹뷰도 orientation을 고정했는데 회전을 해버리네요

Environment

image

public void ShowWebView(
        String url, String title=null, 
        GpmWebViewCallback.GpmWebViewDelegate callback=null, List<string> schemeList=null){
        if(url.IsNullOrEmpty()) return;

        GpmWebView.ShowUrl(url, new GpmWebViewRequest.Configuration()
        {
            title = title != null ? title : "타이틀",
            style = GpmWebViewStyle.FULLSCREEN,
            orientation=GpmOrientation.PORTRAIT,
            isClearCookie = true,
            isClearCache = true,
            isNavigationBarVisible=true,
            isCloseButtonVisible = true,
            supportMultipleWindows = true,
#if UNITY_IOS
            contentMode = GpmWebViewContentMode.MOBILE,
            isMaskViewVisible = true,
            isAutoRotation=false
#endif
            // navigationBarColor = "#523CC1",
        }, callback != null ? callback : WebViewOnCallback, schemeList);
    }

Unity

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Add any other context about the problem here.

spin-nhn commented 2 weeks ago

@catchudev 안녕하세요 확인 후 답변드리겠습니다.

github-actions[bot] commented 1 week ago

Stale issue. Please check this issue.