Allow 3rd-party apps to make greater use of Notification Center
| Originator: | neekbeta | ||
| Number: | rdar://32106435 | Date Originated: | 2017/5/10 |
| Status: | Duplicate/32072797 | Resolved: | |
| Product: | macOS + SDK | Product Version: | |
| Classification: | Reproducible: |
Area: Something not on this list Summary: Apple Mail has access to APIs in the Notification Center that aren’t available to third-party developers. When Apple Mail shows a new email notification, it has the very handy ‘Trash’ and ‘Reply’ buttons in the alert. Hitting the ‘Trash’ button will send that email straight to the trash, and whichever application is front most, stays at the front. 3rd-party developers don’t have the ability to mimic this behaviour. Clicking on a similar ‘Trash’ button brings the application to the front. Steps to Reproduce: 1. Open Apple Mail. 2. Switch to another application (or even just hide Apple Mail). 3. Wait for new emails to arrive (or send them to yourself from another device). 4. See new email notifications come in. 5. Note the ‘Trash’ button in the notification. 6. Click on the ‘Trash’ button. 7. Note that Apple Mail stays in the background. This action isn’t available to third-party apps. You can see the difference with MailMate. Before you begin you will need a Mac that either has Apple Mail configured, or a test IMAP email account. 1. Download (https://freron.com/download/), install and set up MailMate (the Apple Mail import is really handy). 2. Update MM to a beta version (as of writing, this may have made it into a public release), you can update to a beta release by opening MM’s preferences, switching to the ‘Software Update’ tab, hold the option key and click on ‘Check Now’. 3. Once MM has been updated, quit it. 4. Enter the defaults write command here: https://freron.lighthouseapp.com/projects/58672/tickets/1738-feature-request-customisable-notification-alerts#ticket-1738-3 5. Relaunch MM. 6. Switch to another application. 7. Wait for new emails or send yourself some new email. 8. See the new email notification come in. 9. Note the new ‘Delete’ button. 10. Click the ‘Delete’ button. 11. Note that MailMate is brought forward. Expected Results: MailMate should stay in the background (or hidden if it was hidden). Actual Results: MailMate is brought forward. Version: 15G1421 Notes: Related bug: 32072797
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!