flutter_naver_login icon indicating copy to clipboard operation
flutter_naver_login copied to clipboard

xcode13 appDelegate.swift 리턴 메서드 변경

Open jinsyu opened this issue 3 years ago • 1 comments

@objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { return super.application(application, didFinishLaunchingWithOptions: launchOptions) } }

문서에 나온 url 파라미터가 없습니다. 어떻게 집어 넣어야 할까요? 로그인 하고 놀아온 앱에서 아무런 정보도 받아오고 있지 않습니다.

jinsyu avatar Dec 28 '21 16:12 jinsyu

파일 최상단에 import NaverThirdPartyLogin 넣으시고, class AppDelegate 내부에, 원래 있는 override func application 은 그대로 두시고, 아래에다가

override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
    var applicationResult = false
    if (!applicationResult) {
       applicationResult = NaverThirdPartyLoginConnection.getSharedInstance().application(app, open: url, options: options)
    }
    // if you use other application url process, please add code here.
    
    if (!applicationResult) {
       applicationResult = super.application(app, open: url, options: options)
    }
    return applicationResult
}

추가하시면 됩니다

hottestchilipepper avatar Jan 01 '23 02:01 hottestchilipepper