RawNotification RawNotification RawNotification RawNotification RawNotification Class

Definition

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
struct winrt::Windows::Networking::PushNotifications::RawNotification
public sealed class RawNotification
Public NotInheritable Class RawNotification
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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.

Version history

Windows version SDK version Value added
1703 15063 ChannelId
1703 15063 Headers

Properties

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