I tried to install the profiles, but they both seem to be the same profile - Facetime and Call Activity Logging
I turned off the phone around 19:50 CET
then
20:00:00 Boot
20:01:00 Push 1
20:02:00 Push 2
20:03:00 Push 3
20:04:00 Push 4
20:05:30 Unlock
20:07:00 Push 5
20:08:00 Launch app
and run sysdiagnose
from what I can see in my application log it was only launched at 20:08:02 and then almost immediately (1s or so) it got 3 voip pushes which we reported to callkit immediately.
It was never launched to the background because for this we fire a local notification in the debug build and it wasn't shown
No other voip pushes has been received
and no new crashlogs seem to be on the device
What is the recommended way to detect that we are launched before first unlock? Store an item in the keychain with Always flag and one with AfterFirstUnlock and check for their existence upon launch?
What determines if the VOIP app is launched before first unlock or not because it seems that some apps are being launched as the result of the voip push and some are not.