I’d like my app to have different functionality depending on whether it launched while it was still active in the background (i.e. not fully exited) versus when it gets relaunched after a phone call. Possible?
Answers I found on stackoverflow were mostly related to how to resume after a phone call at all.
EDIT: I found an answer to this question on apple forums dated 2008 which involved making deductions based on the duration of your average phone call, looks like that is still the most valid option?
In your appdelegate there are two methods which will becalled in your app is running and a for example a phone call comes in:
And is called when you app becomes active again.
There is
sureNO way to tell if a phone is has been made if you app was in background or not running when the call started.