kakao / kakao_flutter_sdk

Flutter SDK for Kakao Open API
Apache License 2.0
192 stars 71 forks source link

[Bug] loginWithKakaoTalk()에서 OAuthToken 값을 가져오지 못하고 있습니다. #188

Closed ttb-inc closed 6 months ago

ttb-inc commented 6 months ago

이슈 설명 (Issue description)

안녕하세요.

...
var authToken = await UserApi.instance.loginWithKakaoTalk();
...

위 함수에서 return이 안되고 있습니다.

현재 스토어에 올라가있는 앱(kakao_flutter_sdk: 1.6.1)은 정상적으로 동작하고 있습니다. 개발 버전 앱(kakao_flutter_sdk: 1.9.1+2)에서 오류가 발생하고 있습니다.

아래와 같은 로그만 출력됩니다.

flutter: {
flutter:   "code": "tNRIcreMwR6ciGjRkSRp3NrpAXVQhoLIJ71m1-X7yQFUCXyYVVTY3vX8uxgKKwyoAAABj1fXfFzC3p98Pd5TpQ"
flutter: }
final authCode = await AuthCodeClient.instance.authorizeWithTalk(...);

위 함수에서 멈춰있으며, 진행이 되고 있지 않습니다.

Exception도 발생하지 않고 있습니다.

플러그인 버전을 kakao_flutter_sdk: 1.6.1로 변경해도 개발버전에서는 오류가 발생하고있습니다. 현재 스토어에 올라가있는 kakao_flutter_sdk: 1.6.1는 정상적으로 동작하고있습니다. (스토어에 올라가있는 앱은 Flutter version이나 기타 다른 패키지들의 버전은 더 낮은 버전입니다.)

확인 부탁드립니다. 감사하니다.

앱 ID (App ID)

876172, 876154

플랫폼 (Platform)

iOS 17+

디바이스 (Device)

iPhone SE3, iPhone 13 Max

Version

1.9.1+2

Flutter SDK

Flutter (Channel stable, 3.19.6, on macOS 14.4.1 23E224 darwin-arm64, locale ko-KR)

재현 방법 (Steps to reproduce)

초기화 하고, 함수 호출만 했습니다.

코드 샘플 (Code Sample)

...
      KakaoSdk.init(nativeAppKey: nativeAppKey);

      OAuthToken? authToken;

      if (await isKakaoTalkInstalled()) {
        try {
          authToken = await UserApi.instance.loginWithKakaoTalk();
        } on KakaoAuthException catch (e) {
          consoleLog(e.toString());
        } on PlatformException catch (e) {
          consoleLog(e.toString());
        } catch (e) {
          consoleLog('loginWithKakaoTalk - ${e.toString()}');
        }
      }
...

Logs

flutter: {
flutter:   "code": "tNRIcreMwR6ciGjRkSRp3NrpAXVQhoLIJ71m1-X7yQFUCXyYVVTY3vX8uxgKKwyoAAABj1fXfFzC3p98Pd5TpQ"
flutter: }

Flutter Doctor

[✓] Flutter (Channel stable, 3.19.6, on macOS 14.4.1 23E224 darwin-arm64, locale ko-KR)
    • Flutter version 3.19.6 on channel stable at /Users/jeonglockpark/Desktop/work/flutter_sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (3 weeks ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/jeonglockpark/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.88.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Network resources
    • All expected network resources are available.

• No issues found!
Process finished with exit code 0