tccutil like command for resetting the User Notifications setting?

Hello,

While testing my app I want to be able to retry the workflow of doing the first request for the User Notifications, but I cannot find a way to reset that information.

tccutil All [bundle id] did not work for me, so I am assuming that there might be another way to do this, but I have not been able to find it.

Since you are here looking, one of the other reasons I want to do this, is that I am getting this error when I actually try to send a local notification, even when the app has proper access given:

Error sending notification: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service with pid 586 named com.apple.usernotifications.usernotificationservice"

Thanks for any help,

Scott

Answered by lksoft in 723501022

So, it turns out you can simply select the app in the Notifications systems prefs/settings and hit the delete key. I had been trying to right click to get a context menu that might allow me to delete, but that didn't work!

So resetting the notifications didn't resolve my issue either, but I will create a new post for that.

Scott

Accepted Answer

So, it turns out you can simply select the app in the Notifications systems prefs/settings and hit the delete key. I had been trying to right click to get a context menu that might allow me to delete, but that didn't work!

So resetting the notifications didn't resolve my issue either, but I will create a new post for that.

Scott

tccutil like command for resetting the User Notifications setting?
 
 
Q