crossplatformkorea / react-native-kakao-login

react-native native module for Kakao sign in.
MIT License
360 stars 135 forks source link

카카오톡이 설치된 IOS 기기에서 로그인이 되지 않는 오류 #238

Closed lazyflog closed 3 years ago

lazyflog commented 3 years ago

Version of kakao-login libraries

3.3.2

Version of react-native

0.64.2

Platforms you faced the error (IOS or Android or both?)

IOS

Expected behavior

login

Actual behavior

카카오톡이 설치돼있지 않은 환경에서는 로그인이 되지만 그렇지 않은 환경에서는 로그인이 되지 않고, 카카오톡으로 넘어가서 로그인 창이 뜨다가 마는 현상이 발생하고 있습니다. 혹시나 백그라운드에서 문제가 발생하는건가 싶어, dispatch_async(dispatch_get_global_queue <- 이것도 넣어보고, URL스킴도 확인하고 다 해봤지만 어떠한 문제인지 모르겠습니다. 현재 kakao, naver, apple, google로그인을 구현중에 있습니다.

다음 로그는 IOS실 기기에서 카카오 로그인 실행 시 나오는 로그입니다. 2021-07-09 15:12:04.634733+0900 DeliCharge[30953:6246917] [connection] nw_write_request_report [C1] Send failed with error "Socket is not connected" 2021-07-09 15:12:40.282900+0900 DeliCharge[30953:6247527] [connection] nw_endpoint_handler_set_adaptive_read_handler [C5.1 172.217.25.74:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed 2021-07-09 15:12:40.283039+0900 DeliCharge[30953:6247527] [connection] nw_endpoint_handler_set_adaptive_write_handler [C5.1 172.217.25.74:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed 2021-07-09 15:13:06.700911+0900 DeliCharge[30953:6247531] [connection] nw_endpoint_handler_set_adaptive_read_handler [C6.1 172.217.175.110:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed 2021-07-09 15:13:06.701022+0900 DeliCharge[30953:6247531] [connection] nw_endpoint_handler_set_adaptive_write_handler [C6.1 172.217.175.110:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed 2021-07-09 15:13:12.197301+0900 DeliCharge[30953:6247531] [connection] nw_endpoint_handler_set_adaptive_read_handler [C7.1 172.217.25.74:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed 2021-07-09 15:13:12.197436+0900 DeliCharge[30953:6247531] [connection] nw_endpoint_handler_set_adaptive_write_handler [C7.1 172.217.25.74:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed

Tested environment (Emulator? Real Device?)

iOS 14.5 iPhone 11

lazyflog commented 3 years ago

아 해결했습니다. CFBundleURLSchemes에 url의 맨 끝에 :oauth를 붙여놨었는데 이것때문이더군요