Closed ghost closed 8 years ago
Taking a look, thanks!
Hi @bardu, thanks again for letting us know. 0.8.2dev3 fixes the issue.
Thanks for the quick fix!
Thanks for the fix, however now the app is freezing in a different spot:
Xcode jumps to UIApplication+APPLocalNotification.m, line 1919, SIGABRT
@bardu do you have the same problem? @marcvanh that's a strange line number, since the class is only 331 lines long..
Sorry - it's line 191
if ([notification.options.id isEqualToNumber:id]) {
Thanks @marcvanh, did you set an ID like in @bardu's example?
In case it helps, it is happening on a cancel() call, and the id passed may not exist. I haven't tested other calls.
There would have been an id, but it may have never been a valid notification. It's a catch-all cancel that always worked prior to iOS 9
Thanks for clearing that up - ideas for a fix as well perhaps?
No, sorry I am not too familiar with Obj C
If you can, please try this instead of the current line 191 - guessing the id is nil..:
if (notification.options.id != nil && [notification.options.id isEqualToNumber:id]) {
Just tested - the value was actually not nil - it was a real notification id.
I don't think I can help you since I can't reproduce it..
Have you tried it with a non-existent notification id?
Is there a way to create one that you know of?
I upgraded my iPhones and Xcode over the weekend to iOS 9 and now my app freezes as soon as notification is scheduled like:
Xcode jumps to APPLocationNotificationOptions.m line 142 EXC_BAD_ACCESS ...
Anyone else with the same issue?
Same code still working as expected on Samsung 6 Edge with Android 5.0.2.