Send Windows Push Notification Services (WNS) using PHP

Windows Push Notification Services (WNS) is a service to send push notifications from server to the any windows  application. using the WNS you can send toast, tile, badge, and raw updates from their own cloud service. WNS provide mechanism to send updates to your users in a power-efficient and dependable way.


Creating MySQL Database Table for store user device ids

  1. create database table for store user information and Device Notify URL.
  2. After create table you will store user information and user device notify url. The notify user provided by app developer, this is a user device unique url.


PHP Script For Send WNS Push Notification :

  1. Create WNS library file, in which file we define function to send windows push notification.
  2. get users device notify url list from database.

  3. Prepare device notify url array and data array for send push notifications