Hi all,
I'm fairly new to WatckKit; My app captures a bunch of movement related things and when the capture is done It zips the folder containing all the captured data and transfer it using the connectivity framework to the iOS app.
However, sometimes, the watch extension gets killed due to what I suppose being too much CPU or too much CPU time used during the zipping process. The data being zipped is not that big but could be like 1MB. But it seems to take around like 10 seconds to do so.
So my question is "what is the best strategy to handle long running tasks (more than few seconds) and play kind with the system?"
I've seen the ExtensionDelegate handle(_ backgroundTasks: Set<WKRefreshBackgroundTask>) but I don't understand what is the use case of this handler and if I could use it to solve my issue.
Any pointers or help appreciated.
Best regards,
Thierry