쪼렙 as! 풀스택

iOS13 - 카카오 로그인, 페이스북 로그인등 application: openURL() 이 안불러질때;; 본문

개발 일지/iOS & Android

iOS13 - 카카오 로그인, 페이스북 로그인등 application: openURL() 이 안불러질때;;

코코앱 2019. 12. 5. 16:08

이때까지 소셜로그인 하면,

AppDelegate 에, 이것저것 설정해 두었었다.

 

근데 iOS13 에서, 아무리 해도, 카카오 로그인 핸들러가 안불러지는것이다. 

알고보니,

 

SceneDelegate 에도 적용을 해줘야 한다....;;

 

SceneDelegate.swift

    func sceneDidEnterBackground(_ scene: UIScene) {
        KOSession.handleDidEnterBackground()
    }
    
    func sceneDidBecomeActive(_ scene: UIScene) {
        KOSession.handleDidBecomeActive()
    }

    func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
        if let url = URLContexts.first?.url {
            KOSession.handleOpen(url)
        }
    }

 

Comments