앱스플라이어 딥링크 설정
- 앱스플라이어 Onelink를 타고 들어온 경우 pid와 utm설정
This commit is contained in:
@@ -174,7 +174,6 @@ struct HomeView: View {
|
||||
}
|
||||
.onAppear {
|
||||
pushTokenUpdate()
|
||||
viewModel.fetchAndUpdateIdfa()
|
||||
viewModel.getMemberInfo()
|
||||
viewModel.getEventPopup()
|
||||
viewModel.addAllPlaybackTracking()
|
||||
|
@@ -8,9 +8,6 @@
|
||||
import Foundation
|
||||
import Combine
|
||||
|
||||
import AppTrackingTransparency
|
||||
import AdSupport
|
||||
|
||||
final class HomeViewModel: ObservableObject {
|
||||
|
||||
private var subscription = Set<AnyCancellable>()
|
||||
@@ -53,25 +50,6 @@ final class HomeViewModel: ObservableObject {
|
||||
.store(in: &subscription)
|
||||
}
|
||||
|
||||
func fetchAndUpdateIdfa() {
|
||||
ATTrackingManager.requestTrackingAuthorization { [unowned self] status in
|
||||
if status == .authorized {
|
||||
let idfa = ASIdentifierManager.shared().advertisingIdentifier.uuidString
|
||||
self.userRepository.updateIdfa(request: IdfaUpdateRequest(adid: idfa))
|
||||
.sink { result in
|
||||
switch result {
|
||||
case .finished:
|
||||
DEBUG_LOG("finish")
|
||||
case .failure(let error):
|
||||
ERROR_LOG(error.localizedDescription)
|
||||
}
|
||||
} receiveValue: { _ in
|
||||
}
|
||||
.store(in: &self.subscription)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func getMemberInfo() {
|
||||
userRepository.getMemberInfo()
|
||||
.sink { result in
|
||||
|
Reference in New Issue
Block a user