VMware Workspace ONE Community
VinceHWebb
Contributor
Contributor
Jump to solution

How to manage macOS Catalina Notifications with WS1?

I'm looking for a way to pre-approve Notifications for numerous applications in our environment.  Is there some way to set up a profile to manage Notifications in Catalina?

Notifications.png

Labels (1)
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
rterakedis
VMware Employee
VMware Employee
Jump to solution

VinceHWebb​ -- built-in support for this is on the roadmap, but for the time being you can do it as a Custom Settings payload for macOS:

euc-samples/Notifications.md at master · vmware-samples/euc-samples · GitHub

View solution in original post

4 Replies
rterakedis
VMware Employee
VMware Employee
Jump to solution

VinceHWebb​ -- built-in support for this is on the roadmap, but for the time being you can do it as a Custom Settings payload for macOS:

euc-samples/Notifications.md at master · vmware-samples/euc-samples · GitHub

VinceHWebb
Contributor
Contributor
Jump to solution

thanks for the quick assist and the work on making this solution!  I should be able to use this and add in a few other managed apps. 

0 Kudos
mike08
Contributor
Contributor
Jump to solution

@rterakedis - are there any updates on the roadmap? Also, the link to Github doesn't work anymore, tried to search for it under vmware-samples/euc-samples: Workspace ONE UEM (previously AirWatch) Samples and Guidance (github.com...

but no success. 😞

 

tylerharris
Contributor
Contributor
Jump to solution

@mike08 I pulled the Git and found it (file attached, XML below).

## Notifications Custom XML for macOS ##

Use this to pre-stage allowed notifications for Corporate standard apps and/or automation tools (such as Intelligent Hub when using HubCLI for notifications).  Per [Apple's Developer Documentation](https://developer.apple.com/documentation/devicemanagement/notifications/notificationsettingsitem?changes=latest_minor), you'll need to mind the Alert Type:

* 0: None
* 1: Banner
* 2: Modal (e.g. "Alerts")

> This should be published as a Custom Settings payload in a macOS User profile.


```XML
<dict>
    <key>NotificationSettings</key>
    <array>
        <dict>
            <key>AlertType</key>
            <integer>2</integer>
            <key>BadgesEnabled</key>
            <true/>
            <key>BundleIdentifier</key>
            <string>com.airwatch.mac.agent</string>
            <key>CriticalAlertEnabled</key>
            <true/>
            <key>GroupingType</key>
            <integer>0</integer>
            <key>NotificationsEnabled</key>
            <true/>
            <key>ShowInLockScreen</key>
            <true/>
            <key>ShowInNotificationCenter</key>
            <true/>
            <key>SoundsEnabled</key>
            <true/>
        </dict>
        <dict>
            <key>AlertType</key>
            <integer>2</integer>
            <key>BadgesEnabled</key>
            <true/>
            <key>BundleIdentifier</key>
            <string>com.vmware.hub.mac</string>
            <key>CriticalAlertEnabled</key>
            <true/>
            <key>GroupingType</key>
            <integer>0</integer>
            <key>NotificationsEnabled</key>
            <true/>
            <key>ShowInLockScreen</key>
            <true/>
            <key>ShowInNotificationCenter</key>
            <true/>
            <key>SoundsEnabled</key>
            <true/>
        </dict>
    </array>
    <key>PayloadDescription</key>
    <string>Configures notifications settings.</string>
    <key>PayloadDisplayName</key>
    <string>Notification Settings</string>
    <key>PayloadIdentifier</key>
    <string>com.apple.notificationsettings.ABE75EA9-C93C-4F5F-A66D-36B851CC2635</string>
    <key>PayloadType</key>
    <string>com.apple.notificationsettings</string>
    <key>PayloadUUID</key>
    <string>ABE75EA9-C93C-4F5F-A66D-36B851CC2635</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
```

Some additional information as found by the MacAdmins Community:

* Per [Mr. McIntosh](https://mrmacintosh.com/how-to-manage-catalinas-new-application-notifications-with-a-profile/):
  * You can clear previous notification settings (e.g. the "Allowed" settings) by running `rm ~\Library\Preferences\com.apple.ncprefs.plist`.
  * You can see previous allowed prompts by running `sqlite3 "$(getconf DARWIN_USER_DIR)/com.apple.notificationcenter/db2/db" "select * from app;"`
0 Kudos