Software:Windows Push Notification Service

From HandWiki
Short description: Notification service developed by Microsoft
Windows Push Notification Service
Diagram showing the overview of the Windows Push Notification Service architecture
Overview of the WNS architecture.
Developer(s)Microsoft
Target platform(s)Windows Phone 8.1, Windows 8, Windows 8.1, Windows 10, Windows 10 Mobile
Programming language(s)C#
StatusActive
LicenseClosed-source

Windows Push Notification Service (commonly referred to as Windows Notification Service or WNS) is a notification service developed by Microsoft for all devices running Microsoft Windows platforms. It allows for developers to send push data ("toast" and "tile" updates) to Windows and Universal Windows Platform applications which implement the feature.[1] Designed as a successor to the Microsoft Push Notification Service, it was first supported on Windows 8 and subsequently on Windows Phone 8.1 upon its release.[2]

Technical details

Design and compatibility

The Windows Push Notification Service (WNS) was designed as a successor to the Microsoft Push Notification Service (MPNS), which was only supported natively on the Windows Phone 8 Operating System. Developers can still use the MPNS on apps that are installed on newer versions of Windows Mobile (Windows Phone 8 or Windows Phone 8.1), but only if the Windows application was already registered to use the MPNS and has been converted to a Microsoft Silverlight application and modified to re-target the new platform.[3]

In 2015, Microsoft announced that the WNS would be expanded to utilize the Universal Windows Platform architecture, allowing for push data to be sent to Windows 10, Windows 10 Mobile, Xbox, as well as other supported platforms using universal API calls and POST requests.[4]

During the 2015 Build keynote, Microsoft announced a Universal Windows Platform bridge that would allow Android and iOS software to be ported to Windows 10 Mobile and published to the Windows Store.[5] In August 2015, A version of the Microsoft Android bridge toolset was reported to be leaked and available on the internet along with its documentation.[6] The leaked toolset required developers to register and use the WNS to send notification data to ported applications, and would not allow for Google Cloud Messaging to be used instead. Microsoft later discontinued the Android bridge project in favor of continuing support for iOS application porting instead.[7]

During the 2016 Build keynote, Microsoft announced an update to the WNS and the Windows 10 Operating System that will allow for Android and iOS devices to forward push notifications received to Windows 10 to be viewed and discarded.[8]

Architecture

The architecture of the Windows Push Notification Service is similar to that of its predecessor, in that it consists of servers and interfaces that generate, maintain, store, and authenticate unique identifiers (called Channel URI Identifiers) for all devices that register to use the service.[2] When a device enrolls to receive data and notification information using the WNS, it first sends a device registration request to the WNS network. The WNS network acknowledges the request, and responds with the device's unique Channel URI Identifier.[9] Typically, the device will then send its identifier to a server owned by the developer so that it can be stored and used for sending notifications.[1] When the app developer wishes to transmit a notification or other WNS data to the device, it will transmit a POST request to the WNS network.[10] The network will acknowledge and authenticate the request. If the authentication succeeds, the data to be transmitted is enqueued and then sent to the device from the WNS network using the Channel URI Identifier.[citation needed]

References

  1. 1.0 1.1 "Windows 8 push notifications". June 3, 2012. http://dotnettrain.blogspot.com/2012/06/windows-8-push-notifications.html. 
  2. 2.0 2.1 "Windows Push Notification Services (WNS) overview (Windows Runtime apps)". Microsoft. https://msdn.microsoft.com/en-us/library/windows/apps/hh913756.aspx. 
  3. "Choosing MPNS or WNS for a Windows Phone Silverlight 8.1 app". Microsoft. https://msdn.microsoft.com/en-us/library/windows/apps/dn642085%28v=vs.105%29.aspx. 
  4. Gallo, Kevin (March 2, 2015). "A first look at the Windows 10 universal app platform". Microsoft. https://blogs.windows.com/buildingapps/2015/03/02/a-first-look-at-the-windows-10-universal-app-platform/. 
  5. Hachman, Mark (August 6, 2015). "Microsoft releases iOS-to-Windows app maker Windows Bridge to open source". IDG. http://www.pcworld.com/article/2960526/software-development/microsoft-releases-ios-to-windows-app-maker-windows-bridge-to-open-source.html. 
  6. Saran, Cliff (August 18, 2015). "Android for Windows Mobile tools leaked on web". Computer Weekly. http://www.computerweekly.com/news/4500251900/Android-for-Windows-Mobile-tools-leaked-on-web. 
  7. Jo Foley, Mary (February 25, 2016). "Microsoft: Our Android Windows 10 bridge is dead, but iOS, Win32 ones moving ahead". ZDNet. http://www.zdnet.com/article/microsoft-our-android-windows-10-bridge-is-dead-but-ios-win32-ones-moving-ahead/. 
  8. Ligas, Nicola (April 1, 2016). "Windows 10 will support notifications from Android (ah yes, even Windows 10 Mobile)". Smartworld.it. http://www.smartworld.it/informatica/windows-10-notifiche-android.html. 
  9. "Windows Push Notification Services (WNS) overview". Microsoft. May 4, 2016. https://msdn.microsoft.com/en-us/windows/uwp/controls-and-patterns/tiles-and-notifications-windows-push-notification-services--wns--overview. 
  10. Snoei, Ton. "Windows Phone 8.1 Universal App Push Notifications (WNS) – Part 1". Snoei.net. http://ton.snoei.net/2015/07/10/windows-phone-8-1-universal-app-push-notifications-wns-part-1/. 

External links