Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
var notification = Ti.App.iOS.scheduleLocalNotification({
    // Create an ID for the notification 
    userInfo: {"id": "foo"},
    alertBody: "Test? Test?",
    date: new Date(new Date().getTime() + 3000)
}); 

// Either one of these methodmethods will cancel the notification 
notification.cancel();
Ti.App.iOS.cancelLocalNotification("foo");