LINE 로그인 지원 추가

LINE 로그인 요청과 토큰 처리 흐름을 추가함
This commit is contained in:
Yu Sung
2026-01-28 19:05:42 +09:00
parent 5e85b1d679
commit 42e375ec4b
10 changed files with 131 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ import FBSDKCoreKit
import FirebaseCore
import FirebaseAnalytics
import FirebaseMessaging
import LineSDK
class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -24,6 +25,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()
LoginManager.shared.setup(channelID: LINE_CHANNEL_ID, universalLinkURL: nil)
Notifly.initialize(projectId: NOTIFLY_PROJECT_ID, username: NOTIFLY_USERNAME, password: NOTIFLY_PASSWORD)
Messaging.messaging().delegate = self
setupAppsFlyer()
@@ -75,6 +77,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([any UIUserActivityRestoring]?) -> Void) -> Bool {
_ = LoginManager.shared.application(application, open: userActivity.webpageURL)
AppsFlyerLib.shared().continue(userActivity, restorationHandler: nil)
return true
}