JosephNK / flutter_kakao_login

A Flutter plugin for using the native Kakao Login SDKs on Android and iOS.
BSD 2-Clause "Simplified" License
35 stars 15 forks source link

In ios device kakaoSignIn.login() doesn't end #19

Closed jabonge closed 4 years ago

jabonge commented 4 years ago

Thank you for making this plugin i'm using flutter_kakao_login 0.5.0 in android everything is ok but iphone x and any ios device(installed kakao app) dont get any response after call kakaoSignIn.login() even i dont get any error //my code

Future<List> kakaoAuth() async { result = await kakaoSignIn.logIn(); print("login") . <--------------------- ---------------- this print never call; switch (result.status) { case KakaoLoginStatus.loggedIn: try { KakaoAccessToken accessToken = await (kakaoSignIn.currentAccessToken);

      if (accessToken != null) {
        return [result.account.userID, accessToken.token];
      }
    } catch (err) {
      FlutterCrashlytics().log(err.toString(), tag: "currentAccessToken");
      throw err.toString();
    }

    break;
  case KakaoLoginStatus.loggedOut:
    logger.e("loggedOut");
    break;
  case KakaoLoginStatus.error:
    logger.e("error : ${result.errorMessage}");
    FlutterCrashlytics().log(result.errorMessage, tag: "kakaoAuth");
    throw result.errorMessage;
    break;
}

}

jabonge commented 4 years ago

i think this issue related https://github.com/flutter/flutter/issues/41095

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.