Notice - MacGapProject/MacGap1 GitHub Wiki
Send a Native User notification.
Note: if your app is currently active, any notifications it triggers will be sent directly to the Notifications Centre (the dark grey slide-out bar on the right hand side of your screen). OS X does not display notifications in the popup style unless the triggering app is not active.
notify
macgap.notice.notify({
title: "Notify",
content: "New Message!",
sound: false // optional
});
close
Send a notification and then remove it from notification center:
macgap.notice.notify({title: "title", content: "conent", id: "id"});
macgap.notice.close("id");
Remove all notifications sent by the app:
macgap.notice.close("*");