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
Related
I am looking to create some sort of a function that would send Laravel notifications to C# application. The idea is that whenever a user purchases someone, an administrator is then notified by receiving a notification through a C# application that they would run on their PC. However, at the moment the only way I can think of is by creating a listening server in C# and then just send the data via sockets through PHP. Is there anything else that would be considered a better approach?
Kind Regards,
George
You can build an event-driven system. Your Laravel application will be producer which responsible for send events, and C# application will be consumer. There are lots of options to do it.
I would like to recommend AWS SQS. Also, you can easily create a Lambda, then you can add your newest queue as a trigger. When you do this, you will have a serverless architecture, and you won't worry about the scaling part, AWS handles these stuffs. Also, you can check this. It can be a good start point to meet serverless architecture.
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!
I have some deployed mobile apps that use a backend Web API (not Mobile Service). I added push notifications support using another vendor. Recently...I wanted to check up on Azure Notification Hubs to see if I can also use them for some specific scenario. I am finding out that the documentation has not been updated for a while ...is it me? Is the notification hub the preferred way to send push notifications in Azure?
I am specifically interested in server-side registration. The doc has a special section about that which is nice but it looks quite complicated. Anyway, is there a way to retrieve the status of a message after I send it? For example, if I send a message to target a specific tag, I would like to know how many devices for each platform (i.e. Android, iOS and Windows) it was delivered to and whether the message is still in enqueue, etc.
I just responded to you at https://social.msdn.microsoft.com/Forums/en-US/d420fcc2-7e96-46cc-9dfc-71ea18086b56/notification-hubs-message-status?forum=notificationhubs. Thanks!
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.
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