yoonjaepark / flutter_naver_login

A Flutter plugin for Naver Sign In.
BSD 2-Clause "Simplified" License
47 stars 70 forks source link

iOS13 앱으로 로그인 안되는 버그 #10

Closed UnCheon closed 4 years ago

UnCheon commented 4 years ago

iOS 13에서 네이버 앱이 설치되어있을경우 로그인이 되지 않습니다. ㅜ

jeremylandon commented 4 years ago

Test with the latest naver-ios-sdk by modifying the dependency version of 'naveridlogin-sdk-ios' in podspec file (4.0.12 to 4.1.0) (https://github.com/yoonjaepark/flutter_naver_login/blob/master/ios/flutter_naver_login.podspec), or temporary change the reference in your pubspec with this

flutter_naver_login:  
    git:
        url: git://github.com/Golapadeog/flutter_naver_login.git
        ref: removeUiWebView

(this is the same code with naveridlogin-sdk-ios update)

yoonjaepark commented 4 years ago

해당 사항 체크후 업데이트 하도록 하겠습니다

yoonjaepark commented 4 years ago

ios pod 업데이트했습니다. 확인 부탁드립니다.

UnCheon commented 4 years ago

업데이트 하고 제가 릴리즈를 했는데, 여전히 안되고 있습니다.

yoonjaepark commented 4 years ago

Ios13에서 네이버 앱을 통한 로그인만 안되시는건가요??? 정확한 에러 메세지를 알면 좋을꺼 같은데 현재 디버그모드에서 제 디바이스에서는 네이버 앱을 통한 로그인 되서 ㅜㅜ 증상 알려주시면 감사하겠습니다.

UnCheon commented 4 years ago

이전과 같습니다 ㅜ 실제 릴리즈 하고나면 네이버로그인후 다시 플러터앱으로 돌아와서 토큰을 얻는 코드

final NaverLoginResult result = await FlutterNaverLogin.logIn(); NaverAccessToken res = await FlutterNaverLogin.currentAccessToken;

이 부분에서 에러가 나서 다음 코드가 실행되지 않습니다.

yoonjaepark commented 4 years ago

아... 확인해보니 네이버 문서보니까 메소드 몇가지가 바뀐거같네요 1.0.0 릴리즈모드로 해보니 안되서 1.0.1로 업데이트 해봤습니다. flutter run --release 로 테스트해봐서 확인은 했는데 수고롭겠지만 다시 한번 확인 부탁드립니다!

UnCheon commented 4 years ago

저는 ios 13 아이폰7에서 릴리즈모드로 테스트를 하면 네이버 로그인 버튼을 눌러서 네이버 앱에 들어갈때부터 돌아왔을때까지 아래와 같은 메세지가 나오면서 안됩니다

pod update했고, pubspec update 1.0.1로 했어요!

2019-10-05 14:07:53.203937+0900 Runner[3143:1872147] [] nw_connection_receive_internal_block_invoke [C4] Receive reply failed with error "Operation canceled" 2019-10-05 14:07:53.203993+0900 Runner[3143:1872147] [] nw_connection_receive_internal_block_invoke [C4] Receive reply failed with error "Operation canceled" 2019-10-05 14:07:53.204027+0900 Runner[3143:1872147] [] nw_connection_receive_internal_block_invoke [C4] Receive reply failed with error "Operation canceled" 2019-10-05 14:07:53.204057+0900 Runner[3143:1872147] [] nw_connection_receive_internal_block_invoke [C4] Receive reply failed with error "Operation canceled" 2019-10-05 14:07:53.685150+0900 Runner[3143:1872147] [] nw_connection_receive_internal_block_invoke [C5] Receive reply failed with error "Operation canceled" 2019-10-05 14:07:53.685211+0900 Runner[3143:1872147] [] nw_connection_receive_internal_block_invoke [C5] Receive reply failed with error "Operation canceled" 2019-10-05 14:07:53.685249+0900 Runner[3143:1872147] [] nw_connection_receive_internal_block_invoke [C5] Receive reply failed with error "Operation canceled" 2019-10-05 14:07:53.685356+0900 Runner[3143:1872147] [] nw_connection_receive_internal_block_invoke [C5] Receive reply failed with error "Operation canceled" 2019-10-05 14:07:54.899061+0900 Runner[3143:1871829] Can't end BackgroundTask: no background task exists with identifier 11 (0xb), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug. 2019-10-05 14:08:06.651074+0900 Runner[3143:1871829] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service 2019-10-05 14:08:06.651672+0900 Runner[3143:1871829] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service

yoonjaepark commented 4 years ago

새로운 프로젝트 만들어서 테스트 해봤습니다. target version을 ios13으로 변경하고 진행하였고 진행하면서 문제됐던점은 백그라운드 패치 권한 info.plist에 추가하였고 앱딜리게이트 기본이 object-c에서 swift로 변경되었더군요. 그래서 AppDelegate.swift 에

 override func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
        return NaverThirdPartyLoginConnection.getSharedInstance().application(app, open: url, options: options)
    }

추가하고 정상 작동하는거 확인했습니다.

에러문중에 2019-10-05 14:07:54.899061+0900 Runner[3143:1871829] Can't end BackgroundTask: no background task exists with identifier 11 (0xb), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug. 이 에러는 위에 앱딜리게이트에 추가하는것으로 해결됐는데 한번 확인해보시면 좋을꺼같은데 ㅜㅜ 13올라가면서 이런저런 문제가 많아서... ㅜ

제 개발환경도 남겨두겠습니다. 플루터 버전도 이슈도 있는듯한데 체크 부탁드립니다. 저도 hotfix2에서는 이슈있다고 해서 4로 올렸습니다.

Flutter 1.9.1+hotfix.4 • channel stable • https://github.com/flutter/flutter.git Framework • revision cc949a8e8b (8 days ago) • 2019-09-27 15:04:59 -0700 Engine • revision b863200c37 Tools • Dart 2.5.0