Windows Mobile 6.0/6.5 - Push Notification - c#

My mobile application needs to ping web service (WCF) periodically to get the latest data from server. The problem is, this is done periodically even if there isn't anything new on the server. Is there any way that Server notifies device about the change? Like Push Notification? I have read that Push Notifications can be done by SMS and Email. But, both has disadvantages.

You can try with long lived HTTP requests...
http://msdn.microsoft.com/en-us/library/aa446486.aspx

Related

Offline server that hosts push notifications to Android and IOS

Heya im trying to create an app that people can use to send push notifications to eachohter. The only catch is that the users will be working in an offline server within a company. They won't have access to the internet so connecting to something like Azure Notification Hubs is not possible. The only thing I have been able to find is, that it is possible to create a server from which you could send push notifications. Only problem is, I can't find how to send these notifications. If anyone has any kind of clue how I could send the notifications to the server and then to the users, I would be forever gratefull. Thanks!

C#.Net Architecture for real-time updates for windows desktop client applications

Currently we have windows desktop software that is installed at customer premises and the software is polling a WCF service every 10 mins for updates on data.
I wanted to change this a real-time so when there is a update on server it pushes data back to the desktop client or web client.
The desktop client may be offline i.e. PC can be switch off or application is not started. In this scenario we would like to messages or updates to be queued
As we only support windows desktop client application so I will be using .Net technology.
This is the architecture that I thought of, please let me know if there is a better way to achieve.
NServicebus is another excellant tool for this type of thing.
Please consider streaming / queue platforms such as:
Tibco RV
Aleri
RabbitMQ
Consider Microsoft message queue: https://msdn.microsoft.com/en-us/library/ms978430.aspx
For offline case you don't need any queue. The app will check for update when started. When online, you can keep open TCP or UDP connection to server and send update notification to client. It will be something like "Update notification service".

Need ideas how to build push notifications service C#

I need help in building push notification service on windows server, to send notifications to android phones.
By now I can send notifications but I need some automatic kind of thing that will handle huge numbers of send requests.
At the moment each Registration ID of device, that installed application, sent to the App Server that stores it in SQL Table. DB itself has table that creates all push notification content for each Registration IDs.
The main goal is to create Service, that will run on the App Server where Database exists, its purpose will be to listen to DB notification table and send them instantly to the client device. The problem is to handle thousands of notifications to be sent as fast as possible.
Do anyone have any ideas how to implement it in the best way?
Use Windows Azure Notification Hubs
You can look into Mqtt.
you can also see how to use mqtt with c# here
You can use multiple technology for the same.
Latest is SignalR
However you can try your hands on https://github.com/Redth/PushSharp as well
Thanks
Nipun

Push notification issues in C# for iPhone?

I have used the push notification in my app and I have used our own server, it communicates with the apple server. But the problem is, the notifications are queued in the apple server and it doesn't send any notification to the device.
In server side, they are using C# for push notification services and they have traced the value in that method "service.QueueNotification(alertNotification)". So always the notifications are in the QUEUE and it doesn't send any notification to the device.
I have solved the issue, i am testing the notification in the adhoc mode. The problem is, my developer account was expired so that the notification always in the queue from the apple server and it doesn't send any notification to the device. After that i have used some different valid accounts and it work's fine now.
Thanks!

How to update my desktop application from a Windows Phone 7.5 Mobile application

Our desktop application require to be updated directly when a mobile employee sends any message from his/her windows phone 7 mobile.
Currently our requirement is that send a message from our desktop application to a Windows Phone 7.5 which we are able to achive easily using PUSH Notifications, Now when the user takes some action against the sent message the windows phone app calls the WCF service and pass the message to that WCF which receives the message and puts into the database and application reads it later and this is where problem lies. Because our WCF is putting that message into database our application is polling it every 5 second and if any replies received from any of our drivers then it is updating the UI.
What we want to achieve is when we receive any reply our desktop applicaton should be notified automatically and udpates the UI and then put it into the database.
So please share your experience on this issue.
Thanks
Why not update the WCF service to notify any registered "listeners" (i.e. running instances of your client app) that the database has been updated with new information?
You could do this by having your service expose a service that can be called by clients wanting to register for some/all event types. The client app(s) host a service implementing a callback contract that the service can call when the registered events are raised.
There's a good MSDN article one-way, callback and pub-sub messaging with WCF: http://msdn.microsoft.com/en-us/magazine/cc163537.aspx.
Be sure to keep track of and throttle how many events your client app is receiving per second - the last thing you want to have happen is for 100 client apps to all hit the server 50 times each if 50 events are raised sumultaneously!
Richard's solution is probably more proper, since it describes using nicely packaged WCF APIs that will do a lot for you. Another way could be to implement long-polling yourself. You could then also update your Windows Phone clients when they need to receive an immediate update. I wrote an article on that some time ago which you can find if you google long polling on Windows Phone.

Categories