Problem solvingΒΆ

If you are sending too many notifications within a short timespan, you may encounter the following exception: OSError: [WinError -2143420155] The notification platform is unavailable.

You can solve this by either rebooting, or:

  1. disabling the WpnUserService through services.msc or the task manager

  2. deleting the %LOCALAPPDATA%\Microsoft\Windows\Notifications directory

  3. restarting the aforementioned service, and possibly WpnService as well

The destructiveness of the latter process is undetermined. As always, rebooting the computer is the safest procedure.