应用程序冻结并崩溃尝试在Titanium(iOS)上注册本地通知

时间:2012-08-03 21:58:52

标签: ios notifications titanium push

我正在尝试注册一个scheduleLocalNotification(IOS on titanium)但是当我这样做时,应用程序崩溃了。

我在函数中使用了Kitchen Sink示例。我不是在后台做的。

var notification = Ti.App.iOS.scheduleLocalNotification({
    alertBody:"Kitchen Sink was put in background",
    alertAction:"Re-Launch!",
    userInfo:{"hello":"world"},
    sound:"pop.caf",
    date:new Date(new Date().getTime() + 3000) // 3 seconds after backgrounding
});

我不知道发生了什么,因为Kitchen Sink示例完美无缺。

通知有效,但应用程序在注册时关闭。

0 个答案:

没有答案