scheduleLocalNotification crash
If you are recently seeing app crashes in Appcelerator when you set a scheduleLocalNotification, the problem seems to be that you have to set a valid, unique variable to hold the Notification response.
Previously, I didn’t have to assigne the return of the call to a variable, in 1.7.x you do.
Here’s some code to help:
var n = 0;
var notification = [];
notification[n] = Titanium.App.iOS.scheduleLocalNotification({ alertBody: ”…”, alertAction:”Go”, userInfo:{“cid”:”somedata”}, date: now }); n++;
