Local notification: Close the notification without action

Hi,


I'm using the new UNMutableNotificationContent to display a local notification on Mojave. I want to display something similar to a calendar notification, where I want to have a "Close" button that does nothing, along with options such as "Notify Me in 5 Mins" and "Notify Me Tomorrow", which I was able to do using the UNNotificationCategory.


The problem is that I cannot create a simple "Close" button that does nothing. Upon clicking the "Close" button, the app launches automatically. How can I create a close button with no action?


Any insight is appreciated. Thanks!

Local notification: Close the notification without action
 
 
Q