I'm using NSURLSession to do a background upload of multiple files. It seems to be working fine but I still have a few things to troubleshoot. My issue is around os_log usage for this specific scenario.
I start an upload in the release build of my app on a physical device, connect the console app and then send the app to the background and switch my screen phone off.
The upload is on an unstable network connection, so I expect the uploads to run overnight with retries and all kind of good things
When I come back in the morning there is no trace of any of the overnight logs. The uploads have clearly kept on going and the events have been processed as I can see in the UI the status of the updates and that my retry logic has kicked in.
Essentially it seems that as soon as the app is sent to the background os_log doesn't show up in the console. Never to be seen again even when I start the app again.
What am I missing about viewing those logs. Do I have to also write to a text file to make sure they don't get lost?
I start an upload in the release build of my app on a physical device, connect the console app and then send the app to the background and switch my screen phone off.
The upload is on an unstable network connection, so I expect the uploads to run overnight with retries and all kind of good things
When I come back in the morning there is no trace of any of the overnight logs. The uploads have clearly kept on going and the events have been processed as I can see in the UI the status of the updates and that my retry logic has kicked in.
Essentially it seems that as soon as the app is sent to the background os_log doesn't show up in the console. Never to be seen again even when I start the app again.
What am I missing about viewing those logs. Do I have to also write to a text file to make sure they don't get lost?