I am building an application for windows phone 7 where i need to add push notification whenever some new data has been added in the application from backend. Can anyone please suggest me how to do this? I googled it but didnt get much help. Please someone tell me the procedure for doing this
-
Have you checked this http://stackoverflow.com/questions/4033939/push-notification-problem-in-windows-phone-7?rq=1 – Dragon Feb 18 '14 at 09:35
1 Answers
You can ASP.NET to send push notifications from a web browser. A sample for the same can be found in Windows Phone Dev Center Samples here at MSDN Push Notification Sample.
Alternatively, you can use PHP to send push notifications as well. An excellent library has been put up at CodePlex.
So the overall steps for achieving this would be as follows:
- Inside the app, write code to implement Push Notifications by creating a new push notification channel and subscribing the device to that channel.
- On successful subscription, the device gets a unique Push Notification URI
Use the Push Notification URI in ASP.NET sample page and send some dummy content. Or alternatively for PHP use the following code:
$uri="YOUR PUSH NOTIFICATION URI";
$notif=new WindowsPhonePushNotification($uri);
$notif->push_toast("Title","Description");
This should briefly outline all the steps in setting up and receiving push notifications. The MSDN Sample is self sufficient if you are using ASP.NET. In case you want a step by step tutorial, you can further refer here at C# Corner Tutorial

- 638
- 9
- 33