How to read notifications coming to Windows with C#

hüseyin yılmaz 0 Reputation points
2023-10-27T10:46:51.7233333+00:00

for example; I want to read notifications coming from Facebook, WhatsApp, browser or any application with C#.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,308 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,122 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,473 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Boris 80 Reputation points
    2023-11-05T12:42:53.7566667+00:00

    To read notifications from other applications in Windows 10, you can use the UserNotificationListener class. However, it’s important to note that this class can only read notifications from the current application. It’s not possible to read notifications from other applications due to privacy and security reasons.

    https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/notification-listener

    0 comments No comments