Skip to content

Commit

Permalink
feat(GiniCaptureSDK): Move the track of the screen_shown event for …
Browse files Browse the repository at this point in the history
…Camera screen in `viewDidAppear`

PP-388
  • Loading branch information
ValentinaIancu-Gini committed Apr 11, 2024
1 parent 7ef6791 commit 048007a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ final class CameraViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
setupView()
AnalyticsManager.trackScreenShown(screenName: .camera)
}

override var preferredStatusBarStyle: UIStatusBarStyle {
Expand All @@ -111,6 +110,10 @@ final class CameraViewController: UIViewController {
super.viewDidAppear(animated)
validQRCodeProcessing = false
delegate?.cameraDidAppear(self)

// this event should be sent every time when the user sees this screen, including
// when coming back from Help
AnalyticsManager.trackScreenShown(screenName: .camera)
}

fileprivate func configureTitle() {
Expand Down

0 comments on commit 048007a

Please sign in to comment.