Hello,
I wrote a simple app that displays a sorted list of all contacts having a Birthday Date defined.
For each contact with a Birthday date, I will define up to 2 local notifications (On the day and x days before). I will do this for a maximun of 30 contacts. So I can have up to 60 notifications defined.
When the app is opened or when a new contact is added through the app, I will reload the notifications :
Before redefining the notifications, I clear them using :
[[UIApplication sharedApplication] cancelAllLocalNotifications];
I noticed that once the "reloqd" routine has been called a few times (e.g. : few users added or switch between apps and back to my app), IOS will crash.
I will get a dark screen and a spinning wheel for a few seconds, then everything is back.
If I just take out the line actually defining the notifications :
[[UIApplication sharedApplication] scheduleLocalNotification:localNotif]
I do not see the issue.
I am on IOS 10 beta 8
I did not experience this issue in IOS 9.
My app does not produce a crash log. In fact, I can even switch to another app for a few secs before the crash occurs.
Has anyone experienced a similar issue . How may I troubleshoot this further ?
Thanks in advance,
Andre.