RawNotification RawNotification RawNotification RawNotification RawNotification Class


Encapsulates the app-defined content of a raw notification (a push notification that does not involve UI). Its contents can be used in an app's background task, if the app has that capability, or otherwise consumed by the app and acted on as needed.

public : sealed class RawNotification : IRawNotification, IRawNotification2
struct winrt::Windows::Networking::PushNotifications::RawNotification : IRawNotification, IRawNotification2
public sealed class RawNotification : IRawNotification, IRawNotification2
Public NotInheritable Class RawNotification Implements IRawNotification, IRawNotification2
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


A RawNotification object is obtained through the TriggerDetails property.

A background task that is intended to run in response to a notification must be registered with a PushNotificationTrigger. If it is not registered, the task will not run when a raw notification is received. For more info, see Raw notification overview.


ChannelId ChannelId ChannelId ChannelId ChannelId

Gets the Channel ID of the raw notification.

Content Content Content Content Content

Gets the content of the raw notification as a string. This string specifies a background task associated with the app.

Headers Headers Headers Headers Headers

Gets the raw header content from the notification.

See Also