I am Working on windows phone 8.1 background tasks API. As see in all the other threads of background task API here on stack overflow, there is no definite answer to how long the background task runs, as in we cannot map the 2 CPU seconds to the wall clock time. That means it can exit abruptly.
So my question is, is there an handler that we can use to make sure that the application see why the background task ended abruptly. Probably log the events of action and reason for the exit ?