Commit 5c5ecf21 by Demid Merzlyakov

Analytics: VIEW TODAY

parent eca6ea0b
...@@ -75,8 +75,7 @@ class TodayViewModel: ViewModelProtocol { ...@@ -75,8 +75,7 @@ class TodayViewModel: ViewModelProtocol {
public func privacyPolicyHasBeenViewed() { public func privacyPolicyHasBeenViewed() {
ccpaHelper.shownPrivacyNoticeBefore = true ccpaHelper.shownPrivacyNoticeBefore = true
initializeAllAdsIfNeeded() onboardingFlowCompleted()
PushNotificationsManager.shared.registerForRemoteNotifications()
} }
public func showOnboardingOrPrivacyNoticeIfNeeded() { public func showOnboardingOrPrivacyNoticeIfNeeded() {
...@@ -93,12 +92,17 @@ class TodayViewModel: ViewModelProtocol { ...@@ -93,12 +92,17 @@ class TodayViewModel: ViewModelProtocol {
self.delegate?.showPrivacyNotice(viewModel: self) self.delegate?.showPrivacyNotice(viewModel: self)
} }
else { else {
self.initializeAllAdsIfNeeded() self.onboardingFlowCompleted()
PushNotificationsManager.shared.registerForRemoteNotifications()
} }
} }
} }
} }
private func onboardingFlowCompleted() {
self.initializeAllAdsIfNeeded()
PushNotificationsManager.shared.registerForRemoteNotifications()
analytics(log: .ANALYTICS_VIEW_TODAY)
}
} }
//MARK:- LocationManager Delegate //MARK:- LocationManager Delegate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment