카카오톡 로그인 2단계 인증

문의 시, 사용하시는 SDK 버전 정보와 디벨로퍼스 앱ID를 알려주세요.


앱 ID - 897392
SKD Android 12.0 / 31

안녕하세요.
react native webview에서 InAppBrowser로 카카오톡 로그인을 연동을 하고 있는데,
카카오톡 2단계 인증을 하지 않은 사용자는 정상적으로 콜백이 오는데
2단계 인증을 사용하는 계정은 콜백이 오지않고 InAppBrowser가 튕겨버립니다.

해당 증상 알 수 있을까요?

안녕하세요.

인앱 브라우저에서 2단계 인증 시, 튕김 재현이 되지 않는데요
튕길 때, 로그 제공 가능하실 까요?

2023-07-24 13:57:00.910 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I handleAppVisibility mAppVisible=false visible=true
2023-07-24 13:57:00.919 20929-21146 OpenGLRenderer kr.co.nextplayer.app D setSurface called with nullptr
2023-07-24 13:57:00.927 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)4 dur=6 res=0x1 s={false 0} ch=false fn=-1
2023-07-24 13:57:00.929 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I stopped(false) old=true
2023-07-24 13:57:00.932 20929-20929 MSHandlerLifeCycle kr.co.nextplayer.app I isMultiSplitHandlerRequested: windowingMode=1 isFullscreen=true isPopOver=false isHidden=false skipActivityType=false isHandlerType=false this: DecorView@7ff0ead[ChromeTabsManagerActivity]
2023-07-24 13:57:00.932 20929-20929 MSHandlerLifeCycle kr.co.nextplayer.app I removeMultiSplitHandler: no exist. decor=DecorView@7ff0ead[ChromeTabsManagerActivity]
2023-07-24 13:57:00.932 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I stopped(false) old=false
2023-07-24 13:57:00.938 20929-21146 OpenGLRenderer kr.co.nextplayer.app D setSurface called with nullptr
2023-07-24 13:57:00.948 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=5 res=0x7 s={true 526499594256} ch=true fn=-1
2023-07-24 13:57:00.949 20929-21146 OpenGLRenderer kr.co.nextplayer.app D eglCreateWindowSurface
2023-07-24 13:57:00.949 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I [DP] dp(1) 1 android.view.ViewRootImpl.reportNextDraw:11442 android.view.ViewRootImpl.performTraversals:4198 android.view.ViewRootImpl.doTraversal:2924
2023-07-24 13:57:00.950 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app D Creating frameDrawingCallback nextDrawUseBlastSync=false reportNextDraw=true hasBlurUpdates=false
2023-07-24 13:57:00.950 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app D Creating frameCompleteCallback
2023-07-24 13:57:00.953 20929-21186 ViewRootIm…rActivity] kr.co.nextplayer.app D Received frameDrawingCallback frameNum=1. Creating transactionCompleteCallback=false
2023-07-24 13:57:00.958 20929-21146 ViewRootIm…rActivity] kr.co.nextplayer.app D Received frameCompleteCallback lastAcquiredFrameNum=1 lastAttemptedDrawFrameNum=1
2023-07-24 13:57:00.958 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I [DP] pdf(0) 1 android.view.ViewRootImpl.lambda$addFrameCompleteCallbackIfNeeded$3$ViewRootImpl:5000 android.view.ViewRootImpl$$ExternalSyntheticLambda16.run:6 android.os.Handler.handleCallback:938
2023-07-24 13:57:00.958 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I [DP] rdf()
2023-07-24 13:57:00.958 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app D reportDrawFinished (fn: -1)
2023-07-24 13:57:00.966 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app I handleAppVisibility mAppVisible=false visible=true
2023-07-24 13:57:00.967 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app I stopped(false) old=true
2023-07-24 13:57:00.969 20929-20929 MSHandlerLifeCycle kr.co.nextplayer.app I isMultiSplitHandlerRequested: windowingMode=1 isFullscreen=true isPopOver=false isHidden=false skipActivityType=false isHandlerType=false this: DecorView@2470c5a[MainActivity]
2023-07-24 13:57:00.969 20929-20929 MSHandlerLifeCycle kr.co.nextplayer.app I removeMultiSplitHandler: no exist. decor=DecorView@2470c5a[MainActivity]
2023-07-24 13:57:00.969 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app I stopped(false) old=false
2023-07-24 13:57:00.978 20929-20929 SensorManager kr.co.nextplayer.app D registerListener :: 1, LSM6DSO Acceleration Sensor, 66667, 0,
2023-07-24 13:57:00.981 20929-20929 MSHandlerLifeCycle kr.co.nextplayer.app I isMultiSplitHandlerRequested: windowingMode=1 isFullscreen=true isPopOver=false isHidden=false skipActivityType=false isHandlerType=false this: DecorView@2470c5a[MainActivity]
2023-07-24 13:57:00.981 20929-20929 MSHandlerLifeCycle kr.co.nextplayer.app I removeMultiSplitHandler: no exist. decor=DecorView@2470c5a[MainActivity]
2023-07-24 13:57:00.982 20929-21146 OpenGLRenderer kr.co.nextplayer.app D setSurface called with nullptr
2023-07-24 13:57:00.987 20929-25038 unknown:Re…gWebSocket kr.co.nextplayer.app W Couldn’t connect to “ws://localhost:8081/message?device=SM-N971N%20-%2012%20-%20API%2031&app=kr.co.nextplayer.app&clientid=BridgeDevSupportManager”, will silently retry
2023-07-24 13:57:00.989 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app I Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=5 res=0x7 s={true 526500204656} ch=true fn=-1
2023-07-24 13:57:00.989 20929-21146 OpenGLRenderer kr.co.nextplayer.app D eglCreateWindowSurface
2023-07-24 13:57:00.989 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app I [DP] dp(1) 1 android.view.ViewRootImpl.reportNextDraw:11442 android.view.ViewRootImpl.performTraversals:4198 android.view.ViewRootImpl.doTraversal:2924
2023-07-24 13:57:00.989 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app D Creating frameDrawingCallback nextDrawUseBlastSync=false reportNextDraw=true hasBlurUpdates=false
2023-07-24 13:57:00.989 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app D Creating frameCompleteCallback
2023-07-24 13:57:00.990 20929-21185 ViewRootIm…nActivity] kr.co.nextplayer.app D Received frameDrawingCallback frameNum=1. Creating transactionCompleteCallback=false
2023-07-24 13:57:00.994 20929-21146 ViewRootIm…nActivity] kr.co.nextplayer.app D Received frameCompleteCallback lastAcquiredFrameNum=1 lastAttemptedDrawFrameNum=1
2023-07-24 13:57:00.995 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app I [DP] pdf(0) 1 android.view.ViewRootImpl.lambda$addFrameCompleteCallbackIfNeeded$3$ViewRootImpl:5000 android.view.ViewRootImpl$$ExternalSyntheticLambda16.run:6 android.os.Handler.handleCallback:938
2023-07-24 13:57:00.995 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app I [DP] rdf()
2023-07-24 13:57:00.995 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app D reportDrawFinished (fn: -1)
2023-07-24 13:57:00.999 20929-20929 InsetsSourceConsumer kr.co.nextplayer.app D ensureControlAlpha: for ITYPE_NAVIGATION_BAR on kr.co.nextplayer.app/kr.co.nextplayer.app.MainActivity
2023-07-24 13:57:01.005 20929-20929 InsetsSourceConsumer kr.co.nextplayer.app D ensureControlAlpha: for ITYPE_STATUS_BAR on kr.co.nextplayer.app/kr.co.nextplayer.app.MainActivity
2023-07-24 13:57:01.020 20929-20929 ViewRootIm…nActivity] kr.co.nextplayer.app I MSG_WINDOW_FOCUS_CHANGED 1 1
2023-07-24 13:57:01.025 20929-20929 InputMethodManager kr.co.nextplayer.app D startInputInner - Id : 0
2023-07-24 13:57:01.025 20929-20929 InputMethodManager kr.co.nextplayer.app I startInputInner - mService.startInputOrWindowGainedFocus
2023-07-24 13:57:01.052 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I stopped(true) old=false
2023-07-24 13:57:01.055 20929-20929 MSHandlerLifeCycle kr.co.nextplayer.app I isMultiSplitHandlerRequested: windowingMode=1 isFullscreen=true isPopOver=false isHidden=false skipActivityType=false isHandlerType=false this: DecorView@7ff0ead[ChromeTabsManagerActivity]
2023-07-24 13:57:01.055 20929-20929 MSHandlerLifeCycle kr.co.nextplayer.app I removeMultiSplitHandler: no exist. decor=DecorView@7ff0ead[ChromeTabsManagerActivity]
2023-07-24 13:57:01.058 20929-20929 MSHandlerLifeCycle kr.co.nextplayer.app I removeMultiSplitHandler: no exist. decor=DecorView@7ff0ead[ChromeTabsManagerActivity]
2023-07-24 13:57:01.060 20929-21146 OpenGLRenderer kr.co.nextplayer.app D setSurface called with nullptr
2023-07-24 13:57:01.060 20929-21146 OpenGLRenderer kr.co.nextplayer.app D setSurface() destroyed EGLSurface
2023-07-24 13:57:01.060 20929-21146 OpenGLRenderer kr.co.nextplayer.app D destroyEglSurface
2023-07-24 13:57:01.062 20929-20929 ViewRootIm…rActivity] kr.co.nextplayer.app I dispatchDetachedFromWindow
2023-07-24 13:57:01.065 20929-20929 InputTransport kr.co.nextplayer.app D Input channel destroyed: ‘3530199’, fd=225
2023-07-24 13:57:01.183 20929-21187 ReactNativeJS kr.co.nextplayer.app I ‘result:’, { message: ‘chrome tabs activity closed’, type: ‘cancel’ }
2023-07-24 13:57:01.183 20929-21187 ReactNativeJS kr.co.nextplayer.app I { goForward: [Function: goForward],
goBack: [Function: goBack],
reload: [Function: reload],
stopLoading: [Function: stopLoading],
postMessage: [Function: postMessage],
injectJavaScript: [Function: injectJavaScript],
requestFocus: [Function: requestFocus],
clearFormData: [Function: clearFormData],
clearCache: [Function: clearCache],
clearHistory: [Function: clearHistory] }
2023-07-24 13:57:01.183 20929-21187 ReactNativeJS kr.co.nextplayer.app I ‘type:’, ‘Auth’
2023-07-24 13:57:01.183 20929-21187 ReactNativeJS kr.co.nextplayer.app I ‘payload:’, ‘{“message”:“chrome tabs activity closed”,“type”:“cancel”}’

payload: 는 InAppBrowser 에서 받은 결과값입니다.

제공해 주신 로그에서는 튕김(crash) 문제가 아닌 인앱 브라우저가 자동으로 닫힌것으로 보입니다.
사용하는 웹뷰 패키지가 어떻게 되실까요?

webview → “react-native-webview”: “12.0.2”
inappbrowser → “react-native-inappbrowser-reborn”: “3.7.0”

ios는 정상적으로 동작하는데, 안드로이드에서 해당 문제가 발생합니다.

안드로이드 react-native-inappbrowser-reborn에서 앱이 백그라운드로 진입하는 경우 브라우저가 닫히는 버그가 있습니다. 해당 커뮤니티를 참고 부탁드립니다.

https://github.com/proyecto26/react-native-inappbrowser/issues/153

해결됐습니다.
감사합니다.