I'm writing VoIP application that uses PushKit notification, and I can't found what amount of background execution time gives me one incoming push?
The first thing I've checked is [UIApplication sharedApplication].backgroundTimeRemaining
but this counter doesn't reset by next pushes and apps still remain active even with backgroundTimeRemaining == 0
.
My question is how to get remain time until app become frozen by system? Or how to calculate this time in respect to number of incoming PushKit pushes.
I need this to gracefully close sockets/connections before application becomes frozen.