마케팅 정보를 업데이트를 앱을 실행할 때 한번만 실행하도록 수정
로그인/회원가입 시 마케팅 정보를 업데이트 하도록 수정
This commit is contained in:
@@ -15,7 +15,7 @@ final class AppViewModel: ObservableObject {
|
||||
private let userRepository = UserRepository()
|
||||
|
||||
func fetchAndUpdateIdfa() {
|
||||
DEBUG_LOG("fetchAndUpdateIdfa")
|
||||
AppState.shared.alreadyUpdatedMarketingInfo = true
|
||||
ATTrackingManager.requestTrackingAuthorization { [unowned self] status in
|
||||
if status == .authorized {
|
||||
if !UserDefaults.string(forKey: UserDefaultsKey.token).trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
|
||||
|
||||
Reference in New Issue
Block a user