Local Notification crash

I'm working on a app which is using Local Notifications. It has been working for a while but since i recently launch the app to test them they crash with a stack trace.

It only seems to happen when calling:

    Ti.API.info('background event received = '+notification);

If i remove that listener it works but i can't cancel notifications then. It happens with 1.6.2 and 1.7.0

While it does work in the KitchenSink and i'm using exactly that code..


*** Terminating app due to uncaught exception' 
NSInvalidArgumentException', reason: '
-[__NSCFDictionarysetObject:forKey:]: attempt to insert nil value (key: userInfo)'

If somebody had this as well please tell me how it got solved. I can't seem to figure it out..


1 Answer

  • Have you found a solution? Seems I have the same problem!

    — answered 5 years ago by Jean-Philippe Boily
    1 Comment
    • The issue appears only when you made your project using Titanium Studio.. Don't know why yet, when i used Titanium Developer to create a project it disappeared..

      — commented 5 years ago by J T