MetricKit histogrammedApplicationResumeTime meaning

Hi! I've implemented collecting MetricKit data for my app. And I don't understand meaning of histogrammedApplicationResumeTime values from appLaunch metric. I explored data and found, that there are can be really huge values – around hours.

For example, let's see one data snapshot from real user:

It seems unbelievable, that resumeTime takes 10902720ms (1 hour).

We've also built a bar chart per percentiles and it looks crazy: p85 – 1030ms | p95 – 1.52 million ms | p99 – 13.2 million ms (3.5 hours)

Documentation says:

A histogram of the different amounts of time taken to resume the app from the background.

For me it sounds like: time between moment, when user launch app, which is in background mode already, to moment, when app comes to foreground stay.

But the real data shows that it isn't.

Can somebody describe what really means histogrammedApplicationResumeTime metric?

Post not yet marked as solved Up vote post of jastic7 Down vote post of jastic7
184 views

Replies

When the user leaves the app but does not close it, the app goes in the background, and when they reopen it, it goes into foreground again without restart. Isn’t this your applicationResumeTime?

This would explain the hours-long times 😉

  • Thanks for your answer! I also thought about this scenario, but wouldn't system kill iOS app in background after some minutes? I can't find 100% proof of background lifetime for modern iOS versions, but in old days it was around 10 minutes, but not hours...

Add a Comment