Commit 3138efe
committed
Tracking cold restarts
A cold restart is when an app is closed (swipe away) and relaunched within 30 seconds. In this scenario we currently won't call onSession. We want to track how often this occurs to know the impact of calling onSession in this scenario.
We don't want to consider backgrounding in this case so we are using the registerUserFinished boolean to remove cases where we have already registered a session. We also only want to track this once per app launch so the trackedColdRestart boolean prevents it from being called multiple times.1 parent e9c67df commit 3138efe
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1678 | 1678 | | |
1679 | 1679 | | |
1680 | 1680 | | |
| 1681 | + | |
1681 | 1682 | | |
1682 | 1683 | | |
1683 | 1684 | | |
| |||
1709 | 1710 | | |
1710 | 1711 | | |
1711 | 1712 | | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
1717 | 1721 | | |
1718 | 1722 | | |
1719 | 1723 | | |
| |||
0 commit comments