문의 시 사용하시는 SDK 버전 정보와 플랫폼(Android / iOS) 및 디벨로퍼스 앱ID를 알려주세요.
kakao_flutter_sdk 1.9.7+3 사용하는 플러터앱의 ios에서 언제부터인지 카카오톡 로그인이 안되네요.
1.10.0 적용해봐도 마찬가지입니다.
앱ID는 1046827 입니다.
참고로 loginWithKakaoAccount 로는 잘 되고, loginWithKakaoTalk 으로 한 경우 카톡앱이 열렸다가 다시 돌아오기는 하는데 리턴값을 주지 않고 멈춰버립니다.
다른 질문 참고해서 혹시나 스킴을 못받는게 문제인가 해서 아래와 같이 AppDelegate.swift 를 수정했고 kakao oauth received 로그가 잘 찍히는 것 까지는 확인했는데 여전히 flutter 코드에서 OAuthToken을 받지 못하고 있네요. 확인 부탁 드립니다.
import UIKit
import Flutter
import NidThirdPartyLogin
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
if (NidOAuth.shared.handleURL(url) == true) { // If the URL was passed from the Naver app
return true
}
debugPrint("url: \(url)")
debugPrint("url.scheme: \(url.scheme)")
debugPrint("url.host: \(url.host)")
if (url.scheme?.hasPrefix("kakao") == true && url.host == "oauth") {
debugPrint("kakao oauth received")
return true
}
// Handle URLs coming from other apps
return false
}
}

