I have a webRequest in my widget which is getting a long dictionary, tah must be sorted (see my older topic).
If the webserice response is too large, I get a http errorcode. SO I can show a message to inform the user why it's not possible to show the data.
But in case the response is small enougt, but it's too big for the sorting algorithm, the watchdog is stopping the app.
Is there a possible way to prevent the crash? Somehow with a try/cath around the lung running loop?
I assume, the watchdog is triggered by CPU calls, not by time? So it's even not possible to count the time the sort is running to stop it before the app crashes?