How to access MXBackgroundExitData

I am trying to access the cumulative exit counts through the MXBackgroundExitData. I do this in the AppDelegate and upload it to a database for viewing. However, all of the counts are always 0. I tried terminating the application through the app switcher which should trigger a normal exit but the cumaltiveNormalExitCount stays at 0. Should I be accessing this data in a different class?

I tried terminating the application through the app switcher which should trigger a normal exit

I’d not consider that a normal exit. Removing the app from the multitasking UI will force quit the app if it’s running. I’m not sure how that’s classified by MetricKit, but it’s definitely not a normal exit.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to access MXBackgroundExitData
 
 
Q