Commit 5c5ecf21 by Demid Merzlyakov

Analytics: VIEW TODAY

parent eca6ea0b
......@@ -75,8 +75,7 @@ class TodayViewModel: ViewModelProtocol {
public func privacyPolicyHasBeenViewed() {
ccpaHelper.shownPrivacyNoticeBefore = true
initializeAllAdsIfNeeded()
PushNotificationsManager.shared.registerForRemoteNotifications()
onboardingFlowCompleted()
}
public func showOnboardingOrPrivacyNoticeIfNeeded() {
......@@ -93,12 +92,17 @@ class TodayViewModel: ViewModelProtocol {
self.delegate?.showPrivacyNotice(viewModel: self)
}
else {
self.initializeAllAdsIfNeeded()
PushNotificationsManager.shared.registerForRemoteNotifications()
self.onboardingFlowCompleted()
}
}
}
}
private func onboardingFlowCompleted() {
self.initializeAllAdsIfNeeded()
PushNotificationsManager.shared.registerForRemoteNotifications()
analytics(log: .ANALYTICS_VIEW_TODAY)
}
}
//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