Here's a screenshot of the settings screen for notifications control:
Section "Get notifications from these senders" is displaying some apps.
However there a lot of other apps, showing notifications in actions center, but not being listed in "Get notifications from these senders" list.
Before patch 1607 the notifications data was located on AppDB field of windows registry notifications sections, and later it is located in c:\Users%USERNAME%\AppData\Local\Microsoft\Windows\Notifications\wpndatabase.db, which is SQL lite DB.
This small DB is containing all recent (last 3 days) notifications, notification settings and list of apps which has sent notifications:
As you can see, there are Chrome, Lightshot, some system apps (which has notifications disabled in settings) and two another app named someapp and mywebapp. This two apps can send notifications, which are displayed and can be disabled from toast bar, but they are not listed in the "Get notifications from these senders" list, which makes it quite difficult to re-enable notifications for this apps again - because it involves edit or removal of wpndatabase.db file.
I've tried several tests and found one interesing scenario which seems to prove that wpndatabase.db is not only source of data for the "Get notifications from these senders" list, here's the scenario:
- Disable notifications for the app in the "Get notifications from these senders" (I've used Lightshot)
- Stop WPNUserService, delete wpndatabase.db, start WPNUserService
- Check "Get notifications from these senders" - it is empty now.
- Get new notification for the app (created new screenshot with Lightshot to make a notification). The notification did not appear, as it is still disabled!
- Check "Get notifications from these senders" - it has Lightshot in the list, but it is disabled! Means, that wpndatabase.db is not the final source of notification settings.
So, I've started futher search and found that adding 'Enabled' DWORD:32 to Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings<Appname> makes wpndatabase.db's HandlerSettings table value s:toast to be set to 0. So it seems like wpndatabase.db is dependend on registry settings. Several additional checks prove that setting 'Enabled' to 0 will result in setting s:toast to 0 on either next notification or Windows Push Notifications User Service restart. However, changing Enabled to 1 or removing it will not have any effect: so it seems like it's some kind of legacy setting, which is taken into account by WPN User Service.
The question is quite simple: why some apps are not listed in the "Get notifications from these senders" section, considering all trivial options are OK (background apps allowed, focus assist is off, notification service is running, and so)
Some other refs: https://www.tenforums.com/tutorials/4111-turn-off-notifications-apps-senders-windows-10-a-5.html https://www.mdpi.com/2673-6756/2/1/7
Mentions of similar problem on web: https://www.tenforums.com/tutorials/4111-turn-off-notifications-apps-senders-windows-10-a.html#post8063