Save yourselves from hours of debugging, because I\'ve just wasted 2 weeks after bug hunting mysterious app crashes. It turns out, if you\'re adding a lot o (see answer for
Recently the guys at Todoist released an update (11.2.7) indicating that they've worked around the Springboard crash.
Shortly after, Apple released iOS 10.2. Since then, I've started receiving reports from users of my app that the bug has been resolved. However, curious how the guys at Todoist worked around the problem, I reached out to them and this is what their lead iOS developer shared with me:
Hi Junjie,
Yes, you’re right. The springboard crash in iOS 10 was actually related to scheduling local user notifications. That issue was actually fixed on iOS 10.2, but we also fixed it for iOS 10.1 by just doing the needed changes to user notifications. Before we was adding all requests, regardless if they was already added, and we started to compare them with the already scheduled and just add those that are different:
let requestsToAdd = requestsToSchedule.filter{!pendingRequests.contains($0)}
Hope this helps.
Nuno