앱스플라이어 SDK 추가

This commit is contained in:
Yu Sung
2025-03-06 02:41:04 +09:00
parent dfac57ee23
commit d019f44a0e
7 changed files with 133 additions and 37 deletions

View File

@@ -9,6 +9,7 @@ import SwiftUI
import AppTrackingTransparency
import FBSDKCoreKit
import AppsFlyerLib
@main
struct SodaLiveApp: App {
@@ -24,11 +25,13 @@ struct SodaLiveApp: App {
.onReceive(NotificationCenter.default.publisher(for: UIApplication.didBecomeActiveNotification)) { _ in
UIApplication.shared.applicationIconBadgeNumber = 0
AppsFlyerLib.shared().start()
ATTrackingManager.requestTrackingAuthorization { _ in }
}
.onOpenURL { url in
DEBUG_LOG("I have received a URL through a custom scheme! \(url.absoluteString)")
ApplicationDelegate.shared.application(UIApplication.shared, open: url, options: [:])
AppsFlyerLib.shared().handleOpen(url)
}
}
}