Complete guide for integrating OneSignal push notifications into your Universal Windows Platform (UWP) app using Windows Push Notification Service (WNS) and OneSignal’s REST API
support@onesignal.com
for guidance on migration options.Creating a new OneSignal app with Windows platform
Setting up your OneSignal app and selecting Windows platform
Select Windows UWP SDK to access platform-specific documentation
Save your App ID and invite team members who need access
Configure Windows platform credentials in OneSignal dashboard
Gotcha: Package SID and Secret Key are only available after your app is registered with the Microsoft Store. You cannot test push notifications locally without these credentials.
subscription.type
: "WindowsPush"
subscription.token
: The channel URI from Step 1identity.external_id
: Unique identifier for the user (e.g., user ID from your system)properties
: Any custom user properties for targetingGotcha: Channel URIs can expire and change. Implement logic to refresh the channel URI periodically and update the OneSignal user record when it changes.
PushNotificationReceived
event to detect when you need to refresh: