Commit b9ee5bee by Demid Merzlyakov

IOS-165: fix EXIT_SHORTS_VIEW event is not getting fires when we close the app.

parent e7c3d53b
...@@ -227,6 +227,10 @@ class ShortsViewController: UIViewController { ...@@ -227,6 +227,10 @@ class ShortsViewController: UIViewController {
@objc @objc
private func didEnterBackgroundHandler() { private func didEnterBackgroundHandler() {
if let currentCardIndex = currentCardIndex?.row { if let currentCardIndex = currentCardIndex?.row {
AppAnalytics.shared.log(event: .ANALYTICS_SHORTS_EXIT_SHORTS_VIEW, params: [
.ANALYTICS_KEY_SHORTS_CARD_ID: currentCardIndex,
.ANALYTICS_KEY_SOURCE: source
])
logShortsAnalytics(source: source, forRowAtIndex: currentCardIndex) logShortsAnalytics(source: source, forRowAtIndex: currentCardIndex)
} }
source = .others source = .others
......
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