I am developping a desktop application using C#, which communicates with a server over a WCF Web Service. It is supposed to be a kind of synchronization application. Meaning that when I make some changes on client app I should immediately update the server too(this is easy using service calls), but also this mechanism should be provided vice versa, a change on server must immediately be applied on several clients. I know I can make polling to my server but this doesn't look neat to me, and also I've heard of duplex services, but I'm not sure if I can use it to implement this mechanism.
I am asking for some suggestions over this issue. Thanks in advance.
At a high-level, the key steps for implementing push notifications are: Adding client logic to ask the user for permission to send push notifications, and then sending client identifier information to your server for storage in a database. Adding server logic to push messages to client devices.
A push service receives a network request, validates it and delivers a push message to the appropriate browser. If the browser is offline, the message is queued until the the browser comes online. Each browser can use any push service they want, it's something developers have no control over.
Explanation: Send highly personalized messages is the key aspects of sending effective push notifications.
PushSharp :A server-side library for sending Push Notifications to clients (the clients are basically mobile devices - but can be custom as well)! You google to get some tutorial on PushSharp use as well.
You need to implement a publish and subscribe design. In WCF you could use net-tcp protocol to connect in duplex clients and server.
You could download a quite good implementation on http://www.idesign.net/Downloads/GetDownload/2032
And you will find a good article here.
Regards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With