I want to create a shortcut that disables all notifications when I open an app (including banners (so dnd is not what I want)), and when I close that app the shortcut enables back all notifications. To do that I need to change the value of "show previews" in the settings.
How can I do it?
How can I do it?