Closed NachoEmbrace closed 2 months ago
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.
Package | Version | Score | Details |
---|
Warnings | |
---|---|
:warning: | No CHANGELOG entry added. |
Generated by :no_entry_sign: Danger Swift against b31d80d84abeec94ea091f03898b7d87751fcd9c
Attention: Patch coverage is 98.63636%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 91.82%. Comparing base (
394bd68
) to head (392bc06
).
Even though we were parsing the background sessions remote config, we were never actually using it in the session logic. This PR adds the necessary validations into
SessionController
to drop background sessions if the config is disabled.There's one special case that we have to deal with when the app is starting. In this scenario we can't know right away if the app is actually starting in the background or not. Due to this, the cold start session is always created even if the app is in the background and the config is disabled. Once the session ends it will be dropped unless the session state was updated to foreground.
We also updated the logic for "coldStart" sessions. Due to the changes in iOS 15 where apps can be pre-warmed by the OS, our calculations for the process start time are not accurate. For this reason we can't really know for sure how much time has passed since the process started and the first session is created. For this reason we will always flag the very first session as the "coldStart" session, regardless on how much time has passed since the process started.
Additionally, this PR adds 2 new resources: process start time and process pre warm.