메타(페이스북) SDK 추가

This commit is contained in:
Yu Sung
2025-02-25 17:33:57 +09:00
parent 898ea17a2e
commit 7da5f5a252
6 changed files with 51 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
import UIKit
import FBSDKCoreKit
import FirebaseCore
import FirebaseMessaging
@@ -29,6 +30,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
application.registerForRemoteNotifications()
UIApplication.shared.applicationIconBadgeNumber = 0
ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
AppEvents.shared.activateApp()
return true
}

View File

@@ -8,6 +8,7 @@
import SwiftUI
import AppTrackingTransparency
import FBSDKCoreKit
import FirebaseDynamicLinks
@main
@@ -67,6 +68,7 @@ struct SodaLiveApp: App {
}
.onOpenURL { url in
DEBUG_LOG("I have received a URL through a custom scheme! \(url.absoluteString)")
ApplicationDelegate.shared.application(UIApplication.shared, open: url, options: [:])
if let scheme = url.scheme {
if scheme == "kr.co.vividnext.sodalive" {
if let dynamicLink = DynamicLinks.dynamicLinks().dynamicLink(fromCustomSchemeURL: url) {