This repository was archived by the owner on Jan 2, 2025. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 208
Notice
jeff-h edited this page May 27, 2014 · 3 revisions
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.
macgap.notice.notify({ title: "Notify", content: "New Message!", sound: false // optional }); 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("*"); rtat.net