iamport_flutter icon indicating copy to clipboard operation
iamport_flutter copied to clipboard

[Android] Flutter renderMode 가 'surface' 이면서 backgroundMode 를 transparent모드로 했을때.. 본인인증이 진행되지않음..

Open idompolo opened this issue 2 years ago • 4 comments

예제.. flutter 프로젝트의 MainActivity

class MainActivity: FlutterFragmentActivity() { override fun getBackgroundMode(): FlutterActivityLaunchConfigs.BackgroundMode { return FlutterActivityLaunchConfigs.BackgroundMode.transparent }

override fun getRenderMode(): RenderMode {
    return RenderMode.surface
}

}

or

class MainActivity: FlutterActivity() { override fun getTransparencyMode(): TransparencyMode { return TransparencyMode.transparent }

override fun getRenderMode(): RenderMode {
    return RenderMode.surface
}

}

혹시 플러터웹뷰의 문제인가 하고, 네이티브 별도 엑티비티에 웹뷰로 개발하여 진행하려했으나 역시 먹통..

idompolo avatar Mar 03 '22 03:03 idompolo

문제가 일어난 버전이 무엇인지 알 수 있을까요?

anymate98 avatar Mar 03 '22 05:03 anymate98

해당 패키지 최신버전입니다

안드로이드구요 ​ -----Original Message----- From: "Hyukgyu @.> To: @.>; Cc: @.>; @.>; Sent: 2022-03-03 (목) 14:11:01 (GMT+09:00) Subject: Re: [iamport/iamport_flutter] [Android] Flutter renderMode 가 'surface' 이면서 backgroundMode 를 transparent모드로 했을때.. 본인인증이 진행되지않음.. (Issue #69)

문제가 일어난 버전이 무엇인지 알 수 있을까요? — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***> ​

idompolo avatar Mar 03 '22 12:03 idompolo

   if (Platform.isAndroid) {
      WebView.platform = SurfaceAndroidWebView();
    }

가장 최신 버전에는 안드로이드 12에서 발생하는 문제로 인해 AndroidWebView()를 SurfaceAndroidWebView()로 바꿨는데 해당 부분이 문제가 될 수 있어보입니다. 이게 반영되지 않은 버전이 0.10.0인데 버전을 바꿔도 같은 문제가 발생하는지 확인부탁드립니다.

anymate98 avatar Mar 03 '22 12:03 anymate98

네 감사합니다 내일 해보겠습니다 ​ -----Original Message----- From: "Hyukgyu @.> To: @.>; Cc: @.>; @.>; Sent: 2022-03-03 (목) 21:54:14 (GMT+09:00) Subject: Re: [iamport/iamport_flutter] [Android] Flutter renderMode 가 'surface' 이면서 backgroundMode 를 transparent모드로 했을때.. 본인인증이 진행되지않음.. (Issue #69)

if (Platform.isAndroid) { WebView.platform = SurfaceAndroidWebView(); } 가장 최신 버전에는 안드로이드 12에서 발생하는 문제로 인해 AndroidWebView()를 SurfaceAndroidWebView()로 바꿨는데 해당 부분이 문제가 될 수 있어보입니다. 이게 반영되지 않은 버전이 0.10.0인데 버전을 바꿔도 같은 문제가 발생하는지 확인부탁드립니다. — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***> ​

idompolo avatar Mar 03 '22 13:03 idompolo